Cleanup/removal of old Sprout Form data after a certain time period #114
jamesmacwhite
started this conversation in
Feature Requests
Replies: 1 comment
-
Thanks @jamesmacwhite. A good idea. I've marked this as a Feature Request and will explore our options. I can't promise a timeline so the custom console request may be the way to go if this is needed in the short run. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem (description, use case, screenshots...)
It would be nice to have old form data automatically purged after a certain amount of time. Something like this should be of course optional and not automatically enabled. While generally a good idea for being able to keep the Craft CMS database less bloated there are also potential data management considerations, example for GDPR if forms are collecting personal data you might only be able to store such data for a set period of time before it has to be removed by law. Equally if you happen to use the custom integrations and the form data is passed to another external system, having the data in Craft CMS while good for general record purposes might mean it doesn't need to be present forever either.
The solution (that feature you'd like to see)
A cleanup job/task that can be automatically triggered by a date criteria threshold that will remove any form entries after a certain date criteria.
Alternatives you've considered
Writing a console task do this in a custom module, by essentially querying all Sprout Forms content tables and the entries table to remove records that have a dateCreated that's older than a certain value. It would however be nice if Sprout Forms provided this directly, but I acknowledge this can be implemented outside of Sprout Forms itself.
Beta Was this translation helpful? Give feedback.
All reactions