Texonom
Texonom
/
Computing
Computing
/Data/CRUD/Delete Data/
Soft Deletion
Search

Soft Deletion

Creator
Creator
Seonglae Cho
Created
Created
2022 Jul 21 16:51
Editor
Editor
Seonglae Cho
Edited
Edited
2024 Aug 1 14:44
Refs
Refs
 
 
 
 
 
 

Actually bad practice

Soft deletes create far more problems than they solve - use audit logs instead.
Why soft deletes are evil and what to do instead – James Halsall
For a long time I’ve always thought that soft deletes are the “right way” of deleting records from your database. Like most things within software development, you end up realising that things are not always so black and white.
Why soft deletes are evil and what to do instead – James Halsall
https://jameshalsall.co.uk/posts/why-soft-deletes-are-evil-and-what-to-do-instead
Avoiding the soft delete anti-pattern
Programmers hate deleting things; we’ve all felt that feeling in the pit our stomach when we realise that thing we deleted was really deleted, and on the other hand the security of deleting some unused code, safe in the knowledge that it’s still really there in version control. In the sphere of databases, this terror of deleting things leads people to advocate soft deletion: instead of really deleting a record, you add a field which marks the record as deleted, and you treat any record marked in that way as if it were deleted. This is generally a bad idea, and there are a number of better ways of ensuring access to old data.
Avoiding the soft delete anti-pattern
https://www.cultured.systems/2024/04/24/Soft-delete
Avoiding the soft delete anti-pattern
brandur.org
https://brandur.org/soft-deletion
 
 
 

Recommendations

Texonom
Texonom
/
Computing
Computing
/Data/CRUD/Delete Data/
Soft Deletion
Copyright Seonglae Cho