Skip to main content

Retention and deletion

What it does​

WebForms keeps every submission and every uploaded file until someone deletes it. You can have a form delete its own submissions, or only its uploaded files, once they're older than a number of days. You set this per form, in the Data Retention section of the form's settings. You can also delete submissions by hand in the Inbox. A form that shouldn't keep submissions at all can have Do Not Store Submissions on: its emails still go, and nothing is kept. See Form settings.

This page also lists what stays after a submission is gone. Check it before you tell a customer their data is deleted.

Before you start​

  • Magento's scheduled tasks (cron) run on your server. The automatic cleanup is one of them and does nothing without cron. See Installation.
  • Your admin role can edit the form. To delete submissions by hand, it also includes Inbox and Edit Result.
  • Decide how long you need submissions, for example for warranty claims or disputes. WebForms can't bring back a deleted submission.

Steps​

Auto-Delete Old Form Submissions1:23Watch on YouTube

Delete a form's old submissions automatically​

  1. Go to Content → WebForms → Manage Forms.

  2. Click the form's name.

  3. Click Data Retention in the list of sections on the left.

  4. Select Enable Periodic Cleanup. Cleanup Period (Days) appears below it, set to 60. Enter the number of days your store has decided to keep this form's submissions.

  5. If you want the uploaded files deleted sooner than the submissions, select Enable Periodic Files Cleanup and enter the number of days to keep the files in Files Cleanup Period (Days).

    Data Retention: Do Not Store Submissions at No, Enable Periodic Cleanup and Enable Periodic Files Cleanup at Yes, each with its period box at 60 days
  6. Click Save.

Delete submissions by hand​

  1. Go to Content → WebForms → Inbox.
  2. To find the submissions sent from one email address, click Filters, enter the address in Sender and press Enter. The list shows those submissions from every form your role can see. Repeat this for any other address the person used.
  3. Select the checkboxes of the submissions to delete.
  4. Click Actions and select Delete.

To delete a single submission from its own page, click Edit in its row and click Delete Result.

Erase Customer Form Data for GDPR2:22Watch on YouTube

When one person asks you to erase their data​

Use Erase Personal Data instead of deleting. It finds everything the person sent, as a guest and from their customer account, and erases the personal data while the submissions stay. You can also have it run when a customer account is deleted, with Erase Personal Data on Account Removal. See Erase a person's data.

Customers can delete their own submissions in their account when the form allows it. See Customers' submissions in My Account.

What you should see​

After you save, the form's Data Retention section shows the switches you turned on and your numbers of days.

The cleanup runs with Magento's scheduled tasks. Each time it runs, it deletes this form's submissions that are older than Cleanup Period (Days), counted from the day each submission arrived. They disappear from the Inbox. With Enable Periodic Files Cleanup, the files of submissions older than Files Cleanup Period(days) are deleted, and the submissions themselves stay.

Limits​

  • WebForms has no trash and no undo for deleted submissions. A database, server or file backup made outside WebForms may still hold the submission or its uploaded files.
  • The cleanup deletes every submission older than the period, whatever its status or approval. That includes submissions linked to an order and submissions published on your store.
  • An AI assistant whose connection has Edit and Publish Forms can switch these settings on too, and Do Not Store Submissions, without asking you. See What the assistant can do.
  • Cleanup Period (Days) and Files Cleanup Period (Days) have one value for all store views. A period that is empty or 0 deletes nothing.
  • After a files cleanup, the submission still lists the file's name, but the file itself is gone.
  • The Sender filter finds submissions by the sender's email address. An address the person typed into another field isn't found that way. To cover everything one person sent, use Erase a person's data.
  • Some things stay after a submission is deleted:
    • emails that were already sent stay in the mailboxes that received them;
    • files you exported, downloaded, printed or saved as PDF stay wherever you keep them;
    • copies already sent to other systems, such as a CRM or helpdesk connected to the form, stay there;
    • database, server and file backups keep the submission and its files until your backup process removes them;
    • the audit log keeps its entries about the submission until Audit Log Retention (Days) removes them. They name the submission by its number, not its answers;
    • if customers reply by email, the original reply emails are kept for Keep Original Messages for (Days). See Replies by email;
    • Magento's cache and system log may hold parts of a submission that an integration sent, until they are cleared or rotated.
  • Other kinds of data have their own retention settings in Submissions & Privacy and Email & Replies: removed fields, form versions, reply attachments, the audit log and the text of sent emails. See Settings: Submissions & Privacy and Settings: Email & Replies.

Troubleshooting​

  • Old submissions are still in the Inbox. Check that Enable Periodic Cleanup is Yes and that Cleanup Period (Days) holds a number above zero. Then ask whoever runs your server whether Magento cron is running.
  • Delete isn't in the Actions list. Your role needs Edit Result as well as Inbox. Ask an administrator to add it in System → Permissions → User Roles.
  • The Sender filter finds nothing. The filter looks at the address the submission was sent from. If the form has no Email field, look through the form's own submissions instead.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026