> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/administration/data-retention-policy.md).

# Data Retention Policy

This feature allows to define how long your clients data is retained in the system. It provides control over data lifecycle management by automatically deleting client data after a specified period.

### Overview

The Data Retention Policy limits how long JETI stores operational email data: email audit entries, mail queues, mail logs and webhook execution logs. These records may contain personal data such as email addresses, subjects and message bodies. When the policy is enabled, JETI automatically and permanently deletes every record that is older than the configured retention period.

Automatic data deletion applies to the following pages:

* Issue View / Emails tab
* Audit / Email Audit Log
* Incoming Mails / Incoming Mail Queue
* Incoming Mails / Incoming Mail Log
* Outgoing Mails / Outgoing Mail Queue
* Webhooks / Webhook Execution Logs

All data on this pages will be deleted, not only those entries, which contains client data!

#### Not affected

* Jira issues, comments and attachments created or updated by JETI
* JETI configuration (templates, mail accounts, mail handlers, webhook definitions, etc.)
* The Admin Audit Log

### Configuration

1. Open **Data Retention Policy** in the JETI administration.
2. Select **Use automatic data cleanup**.
3. Set the retention period in months (1–36).
4. Click **Save**.

After saving, the page shows the **Next run time**, which is the earliest date the cleanup will run with the current settings. To turn the policy off, select **Keep my data** and save. Every change to these settings is recorded in the Admin Audit Log.

<figure><img src="https://880912854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mf8H-oTE_fhOrUtfYrN-2724419853%2Fuploads%2FO0H3A4tDhMDHxEjKYX68%2Fimage.png?alt=media&amp;token=cc94b5e1-0a08-4819-8c42-a6488d4b3954" alt=""><figcaption></figcaption></figure>

### Interaction with other retention rules

The Data Retention Policy does not replace JETI's built-in cleanup rules. All rules run independently, so for each record the shortest applicable period takes effect.

### Deletion is permanent

Deleted records are removed from JETI's database and file storage. They cannot be restored from JETI, and Meta-inf cannot restore them on request.

### Rules and Exceptions

* The deletion process runs automatically and does not require any manual intervention
* After the feature is enabled, or whenever the retention settings are modified, a one-week grace period applies, before the new settings take effect. During this period, no data will be deleted.
* The cleanup process runs once per day, so data is not deleted immediately upon reaching the retention threshold.
