The Bonnie Situation
Guides · Contact Form 7 basics

Where are Contact Form 7 submissions stored?

In your email, and nowhere else, unless a storage plugin is installed. Here's exactly where Flamingo, CFDB7 and The Bonnie Situation put submissions in your WordPress database.

By Nick Sullivan · Updated 12 November 2026

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

SetupWhere submissions liveDeleted when
Contact Form 7 aloneThe notification email onlyWhen you delete the email
Flamingowp_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)
CFDB7One 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 SituationIts 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 →

Quick answers

Does Contact Form 7 store submissions in the database?

No. Contact Form 7 only emails each submission. Uploaded files go to a temporary wpcf7_uploads folder just long enough to be attached, then they're removed.

Where does Flamingo store Contact Form 7 messages?

In the wp_posts table as posts of type flamingo_inbound, with the form fields, IP address and user agent in wp_postmeta.

Where does CFDB7 store submissions?

In its own wp_db7_forms table, with each submission stored as a serialized array, and uploaded files in wp-content/uploads/cfdb7_uploads.

Are submissions deleted when I uninstall Flamingo or CFDB7?

No. Both leave their data in your database when uninstalled, so delete the entries inside the plugin first.