Cms: A system wide "recycle bin" or "undelete" function

Created on 31 Jan 2017  路  7Comments  路  Source: craftcms/cms

Created by: Keith Mancuso ([email protected]) on 2015/03/11 01:23:26 +0000
Votes at time of UserVoice import: 24


I'd love to see Craft setup some way to "undelete" recently deleted items through some kind of recycling or trash bin.

A lot of systems will move data into the bin and then automatically clear out and actually delete items after 30 days or so.

We had some issues with clients accidentally deleting data and would love to see this instituted system wide

system administration

Most helpful comment

All 7 comments

> Posted by Jason McCallister ([email protected]) on 2015/03/20 17:34:31 +0000

This is a great idea! Maybe something along the lines of a "soft delete" in the database so the data is never actually deleted but element criteria defaults to only records with NULL in the soft deletes column?

Similar to this approach: https://laravel.com/docs/5.1/eloquent#soft-deleting

> Posted by Nathan Doyle ([email protected]) on 2015/03/11 04:20:14 +0000

This sounds like a great idea for all those folks who are trigger happy.

This would be great!

+ 1 for this, one thing that WP has Craft doesn't that makes sense.

We鈥檝e implemented soft-deletes for Craft 3.1.

@samdark Thanks for the tip! We don鈥檛 really ever use AR to delete things in Craft, but decided to include that library in case any plugins want to use it.

Soft Deletes are now a thing in Craft 3.1 Dev Preview. Announcement: https://craftcms.com/news/craft-3-1-dev-preview

Was this page helpful?
0 / 5 - 0 ratings