Skip to content

Trash

While enableTrash is on (see configuration), the Entries and Assets pages have a Trash tab listing what was deleted, with when and by whom, as recorded in the activity log.

Action Entries Assets
View the trash View trashed entries View trashed assets
Restore Restore entries Restore assets
Delete permanently Delete entries permanently Delete assets permanently

Craft’s own rules still apply.

Restores the items along with the trashed entries and assets related to them by relation fields, like Entries and Assets fields: those they relate to and those relating to them, by their nested entries too.

The related ones are restored as far as the user may restore entries or assets and Craft lets them. Assets are only restored if their file was kept.

Craft deletes the file of an asset as it’s moved to the trash, after which the asset can’t be restored.

With keepTrashedFiles on, Hub has Craft keep the files of all assets moved to the trash, wherever they’re deleted, so they can be restored. The File column of the trash tells whether an asset’s file was kept.

Once an asset is deleted permanently, its file is deleted too:

  • right away, or
  • for assets Craft’s garbage collection deletes after its softDeleteDuration, along with Craft’s garbage, unless another asset has taken its place since.