Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-14T22:59:19.363Z
Comments.Text: 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.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-15T17:52:57.097Z
Comments.Text: Seeing as Craft 2 is on life support, I agree with Brad - upgrading to Craft 3 might be smarter!
Comments.UserDisplayName: RitterKnight
Tags: <plugin-development><database><craft2><soft-deletes>
Title: Adding A Soft Delete in Craft 2 Entries
ThreadText: # 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 username_1 - upgrading to Craft 3 might be smarter!  
  
  ---
  
  ## 0 answers
  
  