Delete Content
Table of Contents
Introduction
The Delete Content job empowers you to efficiently delete Entries, URLs, Tags, or all of them from Codex. Whether you need to streamline your database, remove outdated references, or perform a cleanup, this job offers a flexible solution.
Deletion Types
Type | Description |
---|---|
Entries | Deletes all entries associated with the provided site. This includes entry URLs, references from tags and sections, entries from lists, and entry versions. |
URLs | Deletes all custom URLs created explicitly from the URL management page for the provided site. |
Tags | Deletes all tags associated with the provided site. |
Assets | Deletes all assets selected by the filter. |
All Content | Deletes all content for the selected site, including Entries, URLs, and Tags. |
Logging Details
After executing the Delete Content job, you will receive comprehensive logging messages that provide you with a clear overview of the deletion process. These messages offer insights into the deletions made and allow you to track the success of each deletion type. Here is an example of the logging messages you can expect:
Deleted 1000 entries.
Deleted 1000 URLs.
Deleted 0 tag references.
Deleted 0 section references.
Deleted 0 lists.
Updated 0 entries.
Task completed.
The provided logging messages break down the outcome of each deletion type:
Message | Description |
---|---|
Deleted [count] entries | Informs the number of Entries that have been successfully deleted. |
Deleted [count] URLs | Indicates the number of URLs that have been removed. |
Deleted [count] tag references | Specifies the count of Tag references that have been eradicated. |
Deleted [count] section references | Notifies the number of Section references that have been deleted. |
Deleted [count] lists | Highlights the count of Lists that have been deleted. |
Updated [count] entries | Indicates the number of Entries that have been updated due to the deletions. |
Invalid site id: {siteId} | Informs that an invalid siteId is provided. |
No valid option is selected | Informs that no delete option is selected. |
Task completed | Confirms the successful completion of the deletion task. |
Asset with id [asset.Id] is being used in an entry. | Informs that the Asset cannot be deleted since it is being used. |
Completed deletion. Total assets deleted: [total]. | Indicates the number of Assets that have been successfully deleted. |
These logging messages allow you to precisely track the progress and outcome of the Delete Content job, ensuring you have full visibility into the operations performed. Whether you are removing Entries, URLs, Tags, Assets or performing a comprehensive cleanup, these logs provide a comprehensive record of the executed deletions.
Filtering assets or entries for deletion is a new feature that will be added in Admin v2. For now, please contact the Codex team for assistance with this process.