Skip to content

Introduction

You can delete your previously created content individually or in bulk from the Content Table.

Deleting Content

To delete a single content, select it from the list in the Content Table and quickly complete the deletion process.

1- Select the Content Model which you need to delete its content.

2- Select the checkbox on the far left of the table for the content you need to delete.

3- Click the ”Delete” button from the button group that appears above the content table to delete your content.

Deleting content

Bulk Delete

To delete multiple content items, select them from the list in the Content Table and quickly complete the deletion process.

1- Select the Content Model which you need to delete its contents.

2- Select the checkboxes on the far left of the table for the contents you need to delete.

3- Click the ”Delete” button from the button group that appears above the table to delete your content in bulk.

Bulk deletion

Permanent Deletion

Content deletion in Contentrain is permanent and cannot be undone. There is no trash or recycle bin. Once deleted, the content is removed from the JSON file (for JSON models) or the markdown file is deleted (for Markdown models). Make sure you have a backup or are certain before deleting.

Related Content

If other content items reference the deleted content through Content Relations, those references will become broken. Contentrain does not automatically remove or update references to deleted content. You should manually check and update any related content after deletion.

What Happens When Content is Deleted

  • JSON models: The content entry is removed from the JSON array file. The file itself remains with the remaining entries.
  • Markdown models: The individual markdown file for the deleted content is removed from the repository.
  • Scheduled content: If the deleted content had a scheduled publish or unpublish job, the scheduled job is automatically cancelled.
  • Webhooks: If you have webhooks configured with the Delete action, they will be triggered when content is deleted.

Released under the MIT License.