Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form submissions stored forever in WordPress: how to fix it

DLV-239Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

When someone submits a form, plugins such as Gravity Forms, WPForms, Ninja Forms, Fluent Forms and Flamingo (for Contact Form 7) often save the entry in your WordPress database. Nothing removes it later unless you set a rule. Years of leads, enquiries and sometimes sensitive details (health notes, phone numbers, uploaded files) stay stored long after you stopped needing them.

Why it costs you leads or sales

It rarely costs a sale directly. The cost is risk. The more personal data you hold, the more is exposed if a plugin flaw, weak password or leaked backup gives someone access. Privacy rules such as GDPR also expect you to keep personal data only as long as you need it (storage limitation), so a database of entries from years ago is hard to justify.

Stored personal records grow every monthExample numbers
Stored personal records grow every month (example)Year 1: 3,600 entries; Year 2: 7,200 entries; Year 3: 10,800 entries04,1408,2803,6007,20010,800Year 1Year 2Year 3entries

Example: a site getting 300 submissions a month with no deletion rule holds 3,600 records after a year and 10,800 after three. Your numbers will differ.

How to check if your site has it

Find out what you are storing
  1. Open your form plugin's entries pageWordPress

    Look under Gravity Forms > Entries, WPForms > Entries, Ninja Forms > Submissions, Fluent Forms > Entries or Flamingo > Inbound Messages.

  2. Sort by oldest firstWordPress

    If you see entries older than your business needs (for example more than 12 months), nothing is deleting them.

  3. Check the plugin's retention settingsWordPress

    Look in the plugin's settings or each form's settings for an option about entry retention, auto-delete or 'disable storing entry information'.

  4. Check uploads and backups

    Uploaded files sit in wp-content/uploads. Backups and email copies also hold old data, so include them in your review.

How to fix it

First decide a retention period. Keep entries only as long as you need them to follow up, serve the customer or meet a legal duty. Many small sites choose 30 to 90 days for general enquiries, but the right figure depends on your business and local law, so confirm it with whoever handles your privacy compliance.

Set up deletion by plugin
  1. WPForms

    Go to WPForms > Settings > General and look for the option to disable storing entry information, or per form under Settings > General. Paid plans also offer entry deletion tools in the Entries screen. Check your version for exact options.

  2. Gravity Forms

    Open the form's Settings > Form Settings > Personal Data. Enable personal data options and set 'Retention Policy' to trash or delete entries after a number of days. You can also prevent storage of entry info.

  3. Flamingo (Contact Form 7)

    Flamingo keeps messages until deleted. Delete them in bulk under Flamingo > Inbound Messages, or use a scheduled cleanup (see the code snippet) if you need it automated.

  4. Purge the backlog

    Filter entries older than your retention period, select all, and delete permanently. Empty the trash too. Take a backup first if you may need the data.

Example: delete Flamingo messages older than 90 days dailyphp
add_action('init', function () {
  if (!wp_next_scheduled('fg_purge_flamingo')) {
    wp_schedule_event(time(), 'daily', 'fg_purge_flamingo');
  }
});

add_action('fg_purge_flamingo', function () {
  $old = get_posts([
    'post_type'      => 'flamingo_inbound',
    'post_status'    => 'any',
    'posts_per_page' => 200,
    'fields'         => 'ids',
    'date_query'     => [['before' => '90 days ago']],
  ]);
  foreach ($old as $id) {
    wp_delete_post($id, true);
  }
});
Entry storage before and after

No rule

  • Every entry kept since launch
  • Uploaded files never removed
  • Large backups full of old personal data

Retention rule

  • Entries deleted after a set period
  • Leads kept only in the CRM
  • Smaller database and backups

How to confirm it's fixed

Confirmation checks
  • The oldest entry in the plugin is within your retention period
  • Retention or auto-delete setting is saved on every form
  • Trash is emptied
  • Old uploaded files are gone from wp-content/uploads
  • A test submission still reaches your inbox and CRM
  • Re-check after the first scheduled run that new old entries are removed

How to prevent it happening again

Habits that keep data lean
  • Write down a retention period for each form type
  • Set the retention option when you create a new form
  • Disable entry storage on forms that only need an email
  • Review the plugin list and entries page every quarter
  • Apply the same rule to backups, CRM and email inboxes
  • Mention the retention period in your privacy policy

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys on a schedule and checks that forms work, tracking fires and test leads arrive. It does not inspect how long your database keeps entries. A privacy or compliance audit, a WordPress security and data-retention review, or your form plugin's own retention settings are the right kind of tool here.

Questions people ask

How long should I keep WordPress form submissions?

Keep them only as long as you need them for the purpose they were collected, such as replying to an enquiry or fulfilling an order. Many small sites choose 30 to 90 days for general enquiries, but the right period depends on your business and local law. Ask your privacy adviser to confirm.

Does WordPress delete form entries automatically?

No. WordPress itself does not manage form entries. Whether they are deleted depends on your form plugin, and most keep entries until you delete them or turn on a retention option.

How do I delete old form submissions in WordPress?

Open your form plugin's entries page, filter or sort by date, select the old entries and delete them permanently, then empty the trash. Take a backup first if you may need them later.

Does Contact Form 7 store submissions in the database?

Not by default. Contact Form 7 sends an email only. If you install Flamingo or a similar add-on, messages are saved in the database until you delete them.

Can I stop my form plugin from saving entries at all?

Often yes. WPForms and Gravity Forms both have settings to disable storing entry information. Only do this if every submission reliably reaches your inbox or CRM, and test it afterwards.

Is storing form submissions forever a GDPR problem?

It can be. GDPR expects personal data to be kept no longer than necessary, so holding entries with no clear reason or deletion rule is hard to defend. This is general information, not legal advice.

Do I need to clean backups and uploaded files too?

Yes. Deleting entries does not always remove uploaded files in wp-content/uploads or copies in backups, CRM and email. Include them in your retention plan.

Can FunnelGuard tell me how long my entries are stored?

No. This is outside what FunnelGuard checks. It tests that forms, tracking and lead delivery work, so use your plugin settings or a privacy review for retention.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.