# Configuring the Data Purge Service

## About

*Available in* HERMES 10.6.8.15038 and later

{% hint style="info" %}
**Auditing** logs all purge actions for compliance and traceability. Select the Event source 'Data Purge service' in the Activity log to see all the entities that have been purged or flagged to be purged.
{% endhint %}

The Data Purge Service helps ensure compliance with data retention policies, such as the right to be forgotten, while maintaining flexibility for System Administrators.

* [x] Streamline compliance with data retention policies by scheduling purges outside business hours
* [x] Manual override capability
* [x] Delay options for flexibility.

### **Entities Available to Data Purge**

* Call
* Request
* Task
* Asset
* Service Order
* Person
* Organisation
* Location
* Contract
* Agreement
* Knowledge
* Bulletin

## Configure Data Purge

1. Navigate to System Administration>System>System Auditing
2. Set the Data Purge Options&#x20;

   1. Data Retention Period (Years): Defaults to 7 years.&#x20;
   2. Delay Period (Days): Defaults to 30 days.&#x20;

   Administrators can change the periods according to their Organisation's rules of compliance.

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2Fhhjbznt37gLaqTxi9RlU%2Fimage.png?alt=media&#x26;token=fb7c8f22-38aa-48c4-9331-df4585c28106" alt=""><figcaption><p>Data Purge options</p></figcaption></figure>

## Role-Based Access Security

Analysts with this role can view the **Purge** and **Purge Delay** buttons on applicable entity detail pages.&#x20;

{% hint style="info" %}
**Data Admin** (General Access Security Role) must be granted for Analysts responsible for managing Data Purge and Retention requirements.&#x20;
{% endhint %}

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2FRCOM37wvgjFdqTQ6P19U%2Fimage.png?alt=media&#x26;token=69774636-3561-4180-bf43-f863820fc53a" alt=""><figcaption><p>Data Admin General Access Security Role</p></figcaption></figure>

## Viewing and Searching for Records Scheduled for Purge

* To see the allocated Purge data on the entity scheduled for purge, you can add the "Purge Date" field to relevant screens in ASM Screen Designer.
* To search for records scheduled for Purge, add the "Purge Date" to your search criteria.&#x20;

## Two-Step Purge Process&#x20;

This process is configured to run outside of ASM Core working hours, specifically on weekends (Saturday and Sunday).  &#x20;

{% hint style="info" %}
The service runs two background tasks:&#x20;

*Purge Scheduling Service* Task: Identifies records for purging and sets a purge date

*Purge Service* Task: Deletes records where the purge date has passed.
{% endhint %}

Step 1: Flagged records identified for deletion are amended with a purge date.

Step 2: Records flagged for purging with a purge date are deleted when the purge date has passed.&#x20;

{% hint style="danger" %}
**Once a record is manually purged, it cannot be undone.**
{% endhint %}
