<p>I've been thinking of adding a &quot;Soft Delete&quot; or just perhaps a means in which deleting in certain sections (e.g. News) will archive the entry with an update, rather than deleting it.<br />
As I haven't really touched the Craft tables before, while making plugins, I was wondering about the best way to go about doing this?</p>
<p>Thanks for any leads!</p>

CC BY-SA 4.0
2021-06-14T22:59:19.363Z
Doesn't answer your question, but Craft 3.1 added soft delete support for elements. If you're able to update to the latest it might save you some effort.
Brad Bell
CC BY-SA 4.0
2021-06-15T17:52:57.097Z
Seeing as Craft 2 is on life support, I agree with Brad - upgrading to Craft 3 might be smarter!
RitterKnight
<plugin-development><database><craft2><soft-deletes>
Adding A Soft Delete in Craft 2 Entries
# Adding A Soft Delete in Craft 2 Entries

(Asked by: username_0 on 2021-06-14)

I've been thinking of adding a "Soft Delete" or just perhaps a means in which deleting in certain sections (e.g. News) will archive the entry with an update, rather than deleting it.  
As I haven't really touched the Craft tables before, while making plugins, I was wondering about the best way to go about doing this?

Thanks for any leads!

**Tags:** plugin-development, database, craft2, soft-deletes

> **Comments:**
> **username_1**: Doesn't answer your question, but Craft 3.1 added soft delete support for elements. If you're able to update to the latest it might save you some effort.  
> **username_2**: Seeing as Craft 2 is on life support, I agree with Brad - upgrading to Craft 3 might be smarter!  

---

## 0 answers

