6

How does Stack Overflow implement soft delete of post/answer? As far as I know there're two approaches to do this:

  1. Add addtional "isDeleted" field/column to indicates the post is deleted or not.
  2. Use another table to store the deleted records.( DB Archive)
  3. Any other approach ?

Does anyone know how StackOverflow implement this?

2
  • Looking at SEDE, probably just by setting the deletion-date... Oct 27, 2015 at 18:21
  • Deleted content is available to mods and 10k users, with a date. So there's a deleteddate column...
    – Ben
    Oct 27, 2015 at 18:21

1 Answer 1

13

Basically, the first approach. We have a DeletionDate column on Posts. When it's null, the post is not deleted. When it has a value, it's the timestamp of the deletion.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .