SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Content

Trash

Deleting an entry or a media item moves it to the Trash, under Content. It waits there for 30 days: it can be restored as it was, or deleted forever. After the period it is deleted forever on its own. Admins set the period under Data retention.

What users can do

Editors and admins

  • Delete an entry or a media item as before: it goes to the trash. The toast right after has Undo, which puts it back at once.
  • Open Trash, at the foot of the sidebar, to see what was deleted, newest first: entries and media together, or one type with the Type filter (Everything, Entries, Media).
  • Restore an item. An entry comes back as it was when it was deleted, with its whole history, as a draft: publish it again to put it back on the site. A media item comes back in the library.
  • Delete forever one item, or Empty trash. Both ask first, and neither can be undone.

AI users (MCP) never delete, so they never reach the trash.

Who may do it

WhatPermissionWho has it by default
Move an entry to the trash, restore it, delete it forevercollections.<slug>.deleteadmin, editor
Move a media item to the trash, restore it, delete it forevermedia.deleteadmin, editor

The Trash lists only what the signed-in person may delete. Empty trash deletes only that, too; the rest stays. A custom role limited to its editors' own or their groups' entries (Which entries) still lists the collection's other entries, marked "Not yours to restore or delete", with their actions off.

In the admin

  • Filters opens the Type filter; the filter that is on shows as a chip under it, which takes it off.
  • The list shows each item's title (or file name) with its collection or Media, who deleted it, when, and the date it is deleted forever. 20 items per page.
  • Each row's menu has Restore and Delete forever. Delete forever asks: "Delete "{title}" forever? It is removed with its whole history and cannot be restored. This cannot be undone."
  • Empty trash in the title bar asks: "Empty the trash? Everything in it that you may delete is deleted for good. This cannot be undone." The toast says how many went, and how many stay.
  • Deleting from an entry's editor, from a collection's list (several at once) or from a media item's details doesn't ask: nothing is lost. Undo in the toast after it restores everything that went.

Rules and limits

  • Off the site at once. A published entry is unpublished when it goes to the trash, and the site rebuilds. Its address leaves the site; restored, it comes back as a draft. An entry of a collection without drafts is live again as soon as it is restored.
  • Gone everywhere else. An item in the trash is not in lists, search, the media library, pickers, AI changes, the content API or an instance's export. A link or an image that points to it cannot be saved. With the editorial module, a scheduled publish or a release that holds it fails, as for a deleted entry.
  • What is used stays. An item that other content still uses cannot be deleted, as before. Content in the trash doesn't count for that, but it does keep what it uses from being deleted forever ("still used in Post "…" (in the trash)"), and an entry can't be restored while something it uses is in the trash: restore that first.
  • Unique values stay taken. An entry in the trash keeps its slug and other unique values until it is deleted forever: another entry that takes one is refused, with "A post in the trash already uses this slug."
  • Limits. What is in the trash keeps counting toward the instance's usage limits until it is deleted forever: an entry toward entries and the database, a media item's files (still stored) toward storage.
  • Retention. The trash's period is one kind under Settings, Data retention: Trash, 30 days by default and at least 1. The clean-up deletes what is older; an item that something in the trash still uses waits for a later run.
  • Audit. Every move to the trash, restore and delete forever is in the audit log (collections.<slug>.trash, .untrash, .purge; media.trash, media.untrash, media.purge).

For developers

  • The admin API: GET /api/trash (type, page, perPage), DELETE /api/trash (empty), POST /api/trash/entries/:slug/:id/restore, DELETE /api/trash/entries/:slug/:id, POST /api/trash/media/:id/restore and DELETE /api/trash/media/:id. The existing deletes (DELETE /api/collections/:slug/:id, /api/media/:id and the data API's) move to the trash.
  • The event entries.entry.deleted, which modules hear in on, is written when an entry goes to the trash; restoring writes entries.entry.saved. A module that reads its collections' tables itself leaves trashed entries out with notInTrash or finds them with trashedEntryIds (Content).
  • The code and its tests: shade/features/trash/README.md (the Trash screen and its period), shade/features/entries/README.md ("The trash") and shade/features/media/README.md in the shade repository. The decision: 0008 point 14.