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
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
This sounds like a great idea for all those folks who are trigger happy.
This would be great!
https://github.com/yii2tech/ar-softdelete could be of help.
+ 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
Most helpful comment
https://github.com/yii2tech/ar-softdelete could be of help.