Contact Form 7 on its own stores submissions in one place: the email it sends. It writes nothing to your WordPress database. Uploaded files are saved to a temporary folder, wp-content/uploads/wpcf7_uploads, only long enough to attach them to the email, and then removed.
If you've added a storage plugin, there's a second copy in your database. Where it lives depends on the plugin.
Where each plugin keeps them
| Setup | Where submissions live | Deleted when |
|---|---|---|
| Contact Form 7 alone | The notification email only | When you delete the email |
| Flamingo | wp_posts as post type flamingo_inbound, with fields, IP address and user agent in wp_postmeta. The address book is post type flamingo_contact. | When someone deletes them (spam: trashed after 30 days) |
| CFDB7 | One table, wp_db7_forms, each submission stored as a serialized array. Uploaded files in wp-content/uploads/cfdb7_uploads. | When someone deletes them |
| The Bonnie Situation | Its own tables: wp_bonnie_submissions and wp_bonnie_submission_meta, plus wp_bonnie_retention_log recording each purge. No uploaded files. | Automatically, once older than your retention window |
wp_ is the default table prefix. Your site may use a different one, set in wp-config.php.
Checking what you've got
Not sure whether an old plugin left submissions behind? Neither Flamingo nor CFDB7 removes its data when you uninstall it, so they're often still there years later. With WP-CLI:
wp db query "SELECT COUNT(*) FROM wp_posts WHERE post_type = 'flamingo_inbound'"
wp db query "SELECT COUNT(*) FROM wp_db7_forms"Or open your database in phpMyAdmin or your host's database tool and look for those names. An error saying the table doesn't exist means that plugin never stored anything.
The copies people forget
- Inboxes. Every submission was also emailed, often to several people.
- Backups. Database backups hold every submission that existed when they ran. Deleting from the live site doesn't touch them, so give backups a retention period too.
- Staging sites. A copy of the live database on a test site includes every stored submission.
- Exports. CSV files downloaded from a storage plugin live on whoever's laptop downloaded them.
Keeping the database copy under control
A stored copy is useful: email fails, and several people can see a list in WordPress. The risk is keeping it forever. The Bonnie Situation stores submissions in its own tables and deletes them automatically after the number of days you set. It can also import what Flamingo and CFDB7 left behind, so you can clean those up. How to auto-delete Contact Form 7 submissions →