Library / Data & backend / Soft delete
No. 140·noun·also called archive instead of delete, trash, recycle bin

Soft delete

Marking a record as deleted and hiding it, instead of erasing it, so it can be restored later.

SPECIMEN · DIAGRAM · STATES
Active
Hidden (soft deleted)
Permanently erased
user deletesrestorepurge after 30 days
Definition

What it is

A soft delete keeps the record in the database and flags it as deleted, usually with a field like deleted_at. The app then hides it everywhere. A hard delete, by contrast, removes the record for good.

Use a soft delete when people might delete something by mistake, when support needs to bring things back, or when old records must stay for reports and invoices. Many apps combine the two: soft delete now, then permanently remove the record after 30 days. That is the Trash folder pattern.

It has costs. Every list, search, export and count has to remember to skip deleted records, or ghost items show up. It is also not real erasure. If someone asks you to delete their personal data, a hidden record still holds it, so you need a separate permanent purge.

Soft delete is not Undo, which reverses an action in the moment. It is the storage choice that makes a later restore possible.

Say it like a builder

How to ask for it

Vague

“When someone deletes a project, I don't want it gone forever in case they change their mind.”

Precise

“Make deleting a project a soft delete: set a deleted_at timestamp and hide it from lists, search and counts. Add a Trash view where the owner can restore it, and permanently remove projects 30 days after deletion.”

Why it works

"Not gone forever" could mean a confirmation dialog, a backup, or an undo button; "soft delete" names hiding the record and the prompt sets where it can be restored and when it is erased.

In the wild

You've seen this in

  • GThe Trash folder in Google Drive, where deleted files wait before they are removed
  • GDeleted emails in Gmail, which stay for 30 days
  • BArchived projects in Trello or Asana that disappear from boards but can be reopened
Usage note

Often confused with