Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A system wide "recycle bin" or "undelete" function #867

Closed
angrybrad opened this issue Jan 31, 2017 · 7 comments

Comments

Projects
None yet
5 participants
@angrybrad
Copy link
Member

commented Jan 31, 2017

Created by: Keith Mancuso (keith@familiar-studio.com) 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

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Jason McCallister (themccallister@gmail.com) 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

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Nathan Doyle (natetronn@gmail.com) on 2015/03/11 04:20:14 +0000


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

@groe

This comment has been minimized.

Copy link

commented Jun 1, 2017

This would be great!

@samdark

This comment has been minimized.

Copy link

commented Jul 19, 2017

@RitterKnightCreative

This comment has been minimized.

Copy link

commented Aug 25, 2017

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

@brandonkelly

This comment has been minimized.

Copy link
Member

commented Sep 4, 2018

We’ve implemented soft-deletes for Craft 3.1.

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

@brandonkelly

This comment has been minimized.

Copy link
Member

commented Sep 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.