Trashing

Added
Purpose
Let a member take back a deletion.
Operational principle
If a member deletes an item, it moves to the trash instead of ceasing to exist; until the trash is emptied they can find it there and restore it, and once it is emptied the item is gone.
State
  • trashed: set Item
  • trashedBy: Item -> opt User
Actions
  • trashItem A member deletes an item; it leaves its place and waits in the trash.
  • restoreItem A member returns an item from the trash to where it was.
  • emptyTrash A member destroys every item in the trash.
Misfits
  • Emptying is all or nothing, so freeing the space one item takes destroys the chance to restore every other item. On the Mac, space taken by deleted files on an external drive can be freed only by emptying the whole trash.
  • An item in the trash still counts against storage, so the protection is paid for in space the member believes they have freed.
  • Restoring an item whose container has since been deleted leaves it nowhere to go back to.
  • In shared material one member's deletion takes the item out of everyone's view, and the others do not know it is in someone's trash rather than gone.
  • A rule that trashes on a member's behalf (a spam filter) puts items in the trash with no act the member sees, so they do not know to look there.
  • A retention period that empties the trash on a schedule turns a recoverable deletion into a permanent one with no act the member sees.
Also called
recycle bin, bin, deleted items, soft delete

Patterns that act on it

  • Deletion — the soft-delete arm of the recovery mechanisms