Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Data retention and deletion

How long an Exponential site keeps logs, audit records, consent records, trash, sessions and form data by default, which settings change it, how to delete data when a person asks, and what stays with you and your host…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/security/data-retention-and-deletion.md

On this page

Data retention and deletion

This page is for owners, data protection officers and administrators who must decide how long the site keeps personal data, and how to delete it when that time is up or a person asks. It summarizes the defaults the software ships with and the commands that delete, and points to the full table for administrators.

Warning

Basics, not legal advice. Which periods are right is a legal and business decision, not a software one. Bookkeeping, tax and sector rules may require you to keep some records longer than privacy rules would suggest. Ask a lawyer, your accountant or your data protection officer.

Contents

  1. The defaults at a glance
  2. Deciding your periods
  3. Deleting on request
  4. What does not delete itself
  5. Backups
  6. A retention schedule to fill in

The defaults at a glance

From Log and data retention:

DataDefaultChanged in
Kernel logs (error.log and others)3 archives, rotated at 2 MB, no age limitsite.ini [FileSettings]
404.logpruned after 30 dayslogviewer.ini [RotationSettings]
security.logpruned after 90 dayssame
csp.logpruned after 30 dayssame
Audit trail (content, access, system, commerce)90 days live, 730 days archivedaudit.ini [AuditChannel_<channel>]
Audit index730 days; personal fields pseudonymized after 90[AuditIndexSettings], [AuditPrivacySettings]
Mail consent log of people who are gone1095 daysmailpreferences.ini [ConsentSettings] RetentionDays
Pending mail confirmations7 days[ConsentSettings] PendingDays
Suppression listkept[SuppressionSettings] RetentionDays
Trashpurged whole when the trash cronjob runscontent.ini [TrashSettings] KeepItemsForDays
Finished content jobs30 dayscontent.ini [ContentJobSettings] KeepDays
Sessions360 dayssite.ini [Session] SessionTimeout

Most of these are enforced by cronjobs. If the cronjobs do not run, nothing is removed: make sure your administrator or host schedules them (Cronjobs and background jobs).

Deciding your periods

  1. Start from your data inventory.
  2. For each kind of data, ask your adviser how long you must keep it and how long you may.
  3. Write the period into your privacy notice and your retention schedule.
  4. Ask the administrator to set the matching settings in settings/override; the full list with examples is in Log and data retention.
  5. Agree backup retention with your host so it fits the same periods.

Deleting on request

DataHow to deleteSource
Mail preferences and pending confirmations./console exp:mail:preferences erase --email=<address> --yes; the consent log is anonymized and the withdrawal kept as proofCompliance and GDPR
Stop all mailexp:mail:suppression add --email=<address> --reason=legal, or the person's own unsubscribe linksame
A user accountremoving the user object; it is final (no trash) and erases its mail preferencesCheck user accounts, same
Form submissionsSetup > Collected information: remove the collections of a form, or single collectionsCollected information
Ordersarchive or remove in the store administration; check bookkeeping duties firstBasket, checkout and orders
Newsletter subscriber recordsin the newsletter administration (cjw_newsletter user list)cjw_newsletter
Audit recordsnot deleted one by one; see belowAudit: privacy and GDPR tasks

Note

The audit trail is a hash chain: removing one record would break the proof that nobody changed the log. The audit guide describes keeping records for their retention period, pseudonymizing personal fields in the index, and answering an erasure request with that period. Whether that is enough in your case is a question for your adviser.

Before deleting, consider whether to answer an access request first: the person may want a copy. Delete the export files when the request is done; they hold personal data.

What does not delete itself

  • To do: Exports you downloaded (CSV, JSON) on staff computers and in var/tmp/.
  • To do: Mail sent by forms to a receiver's inbox.
  • To do: Velocity's dated log files: the repository documents no age limit, so remove them with a scheduled job (Log and data retention).
  • To do: Web server, mail server and panel logs outside Exponential.
  • To do: Content versions and drafts: their retention is an editorial decision.
  • To do: Records forwarded to other systems (a SIEM, a syslog server) under their own rules.

Backups

Backups hold everything above for as long as they are kept. Decide, with your host and adviser:

  • how long backups are kept, and where;
  • whether deleted data must be removed from backups, or whether it expires with them;
  • how a restore avoids bringing deleted data back into use.

Backup schedules and retention covers the technical side.

A retention schedule to fill in

RETENTION SCHEDULE - [Site]   Version [x], [date]   Owner: [name]
Data                        | Keep for | Reason / rule          | Setting or method          | Who checks
----------------------------|----------|------------------------|----------------------------|-----------
Request and security logs   |          |                        | logviewer.ini MaxAgeDays   |
Kernel logs                 |          |                        | LogFileMaxAge / MaxAgeDays |
Audit trail archives        |          |                        | audit.ini ArchiveDays      |
Mail consent log            |          |                        | RetentionDays              |
Form submissions            |          |                        | removed by hand, monthly   |
Orders                      |          |                        | archived / removed         |
Newsletter subscribers      |          |                        | newsletter admin           |
User accounts (inactive)    |          |                        | Check user accounts        |
Backups                     |          |                        | host contract              |
Exports                     |          |                        | deleted after the request  |
Approved by: __________   Next review: __________

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x