Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M12372

Soft Delete

Soft Delete
BehaviorHigh supportPsychology
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Logical deletion, also known as soft delete or fake delete, is a database operation that uses a marker to designate data as unavailable without physically removing the data from the database. With appropriate methods, deleted files can be recovered.

Definition

In databases, when deleting data, it is not physically erased but marked as is_deleted = true. The data becomes invisible but can be restored at any time or used for auditing. Scaffold use: reversible decision mechanism. In interpersonal relationships (breaking off) or habit formation (quitting), do not pursue a decisive "physical deletion" but use "soft delete." Leave room for yourself, reduce psychological panic, and it is easier to maintain the status quo.

How to use

Reversible decision mechanism. In interpersonal relationships (breaking off) or habit formation (quitting), do not pursue a decisive "physical deletion" but use "soft delete." Leave room for yourself, reduce psychological panic, and it is easier to maintain the status quo.

Mechanism

The practice of marking deletion with a flag rather than physically removing data. The mechanism is to retain records for recovery, auditing, and compliance with retention requirements.

Practice

In progress 0/2

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • When a user "deletes" an account, it is actually a soft delete; the backend can still restore it; audit logs cannot be hard-deleted.

Common pitfalls

  • When ignoring indexes and unique constraints, deleted rows must be excluded, otherwise conflicts or incorrect displays may occur.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E9%80%BB%E8%BE%91%E5%88%A0%E9%99%A4ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS