mdsimpson / contact-form-7-to-database-extension

CFDB - WordPress plugin to save form submissions into a database
GNU General Public License v3.0
240 stars 59 forks source link

Submissions table purge #49

Open pkenterlis opened 6 years ago

pkenterlis commented 6 years ago

Our submissions table's size is getting out of control due to users submitting photos along with their forms. Are there any plans of providing an automatic purge functionality with a selection of number of days for allowed retention?

gfxdesigner commented 6 years ago

What I do in this case is go to Contact From DB > Options > Saving and enter the field name for the attachment(s) in the "Do not save fields in DB named" field.

I figure my clients get the images in their email and if something blows up with their email, they can at least view posted comments sans images in the database.

gfxdesigner commented 6 years ago

To delete the images, you can either edit the database directly... or there is a CFDB edit plugin that the author has that will do this.

AndyMLang commented 6 years ago

Hi guys can I also +1 this.

With the new European data protection GDPR regulations (https://www.eugdpr.org/) launching later next month it would be an acceptable policy I believe to store data for a short period and then time expire the db entries after a set period.

Thoughts?