I have a client who is wondering whether there is a way that all the form submissions can be completely removed from the database after a specific amount of time.
It is possible to remove all submissions at once after a specific time, but you will need to perform a manual task. Let me explain the steps clearly:
When you want to remove all submissions at once, go to your form editing page → Emails & Actions → Record Submissions.
Enable the “Set Submissions to expire?” option and enter “1” in the box. This will automatically remove all submissions older than 1 day at the end of the day (e.g., 12:00 AM).
If you want to remove all submissions immediately, install and activate the “WP Crontrol” plugin.
Then, go to Tools → Cron Events → All Events, search for “nf_submission_expiration_cron,” and click “Run Now.” This will delete all submissions, including those from today.
The process may take a few seconds depending on the number of submissions.