# Scheduled System Maintenance

This sample project demonstrates how to use the PurgeLogEntries activity from the Automation module to clean up and maintain your project.  To automate the process the project has been scheduled to run every 24 hours.

<figure><img src="https://1923141441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFjmFrZ8sef1J7qkr6H%2Fuploads%2FvBkpcNTNi2ulyItuRHDS%2Fimage.png?alt=media&#x26;token=36ac1411-e237-4f54-8bc7-4e8495ff89d7" alt=""><figcaption></figcaption></figure>

**Activities:**

The project contains only a single activity - the PurgeLogEntries activity from the Automation module. &#x20;

Edit the activity and notice that it has a single property.  Enter the value of the number of days to be used for purging logging records.  That's all that is required.

<figure><img src="https://1923141441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFjmFrZ8sef1J7qkr6H%2Fuploads%2FHdmztECsoPD6bqAKFXa4%2Fimage.png?alt=media&#x26;token=d8c21f25-0831-4f87-91af-c933ffa30cd7" alt=""><figcaption></figcaption></figure>

## **appRules Scheduler**

This project has been scheduled to be run by the appRules Scheduler.   The project details shows the scheduling configuration in the Schedule tab:

<figure><img src="https://1923141441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFjmFrZ8sef1J7qkr6H%2Fuploads%2Fv9YNDvvPWEehBIObd9mI%2Fimage.png?alt=media&#x26;token=3de1d677-f139-41bf-8079-4caf852c3312" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can select one of the preconfigured run frequencies or configure a new one using the Cron syntax.
{% endhint %}
