Skip to main content

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

TypeDescription
EntriesDeletes all entries associated with the provided site. This includes entry URLs, references from tags and sections, entries from lists, and entry versions.
URLsDeletes all custom URLs created explicitly from the URL management page for the provided site.
TagsDeletes all tags associated with the provided site.
AssetsDeletes all assets selected by the filter.
All ContentDeletes 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:

MessageDescription
Deleted [count] entriesInforms the number of Entries that have been successfully deleted.
Deleted [count] URLsIndicates the number of URLs that have been removed.
Deleted [count] tag referencesSpecifies the count of Tag references that have been eradicated.
Deleted [count] section referencesNotifies the number of Section references that have been deleted.
Deleted [count] listsHighlights the count of Lists that have been deleted.
Updated [count] entriesIndicates 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 selectedInforms that no delete option is selected.
Task completedConfirms 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.

info

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.