Restore a Deleted Content Type
Trash maintains a backup of all deleted content types for up to 14 days from the date of deletion. You can restore the content types back to their original condition before they are permanently deleted. While restoring the deleted content type, you can also choose whether you want to restore the entries that were deleted with it.
Note: You cannot edit the schema of a deleted content type while restoring it from the Trash. You get a read-only view of the content type schema.
To restore a deleted content type from the Trash, log in to your Contentstack account, go to your stack, and perform the following steps:
- Click the “Settings” icon (press “S”) on the left navigation panel and select Trash (or press “alt + T” for Windows OS, and “option + T” for Mac OS).
- Click on the Content Types tab, and hover over the content type you want to restore (e.g. Author Details).
- Click on the Restore button that appears at the extreme right end.
- The content type will then disappear from the Trash and will be available in the stack.
- While restoring a content type, you can choose to restore the content type with or without the entries that were deleted with it. Select Restore With Entries or Restore Without Entries depending on your choice.
Key Points to Remember
Before restoring a deleted content type, it is important to understand the following points:
- The entry-level or field-level permissions that were set on the restored content type before deletion will no longer be applicable to it
- The workflow that was assigned to the restored content type before deletion will no longer be applicable to it
- The labels that were applied to the restored content type before deletion will no longer exist
- The releases that were yet to be deployed will no longer contain the entries and assets of the restored content type
Filter Deleted Content Types
By default, the Trash displays previously deleted content types in reverse chronological order under the Content Types tab. You can apply filters to refine the results and display only the required content types.
The Filters section, located on the right, displays the list of available filters, which includes the following:
- DATE: You can filter out the deleted content types according to days. The date filter allows you to quickly view the deleted content types of only the last 14 days, last 7 days, the previous day, or the current day. The “Custom Range” option allows you to set a data range within the last 14 days.
- DELETED BY: You can filter out the deleted content types according to the users that sent them to the trash.
Check the filter options that you want to apply. Click on Reset Filter to clear all the applied filters.
Note: By default, you can view information of content types that were deleted up to 14 days prior to the current day.