Console Commands 3.8.0+

Purge command

This command lets you delete old Freeform entries from the database.

Purge Submissions command

To purge all submissions older than a specific number of days, use the following command:

./craft freeform/purge/submissions --age-in-days=30
1

Purge Spam command

To purge all spam submissions older than a specific number of days, use the following command:

./craft freeform/purge/spam --age-in-days=30
1

Purge Unfinalized Assets

To purge all unfinalized assets older than a specific number of minutes, use the following command:

./craft freeform/purge/unfinalized-assets --age-in-minutes=180
1

By default Freeform executes this service every 3 hours, so there's not much use calling it manually.