---
title: "Change the segment data deletion interval"
slug: "change-the-segment-data-deletion-interval"
abstract: "Describes how you specify how often segment data is cleaned up."
---
# Change the segment data deletion interval

When users delete segments in the Content Editor or in the List Manager, the segment is marked inactive in the database but it still persists in the reference data until the data is deleted from there by a *deletion agent*.

By default, the deletion agent is triggered and runs once every day, starting the count from the time you restart the instance.

To change the interval for deleting segment data:

1. Go to the `App_Config\Sitecore\ExperienceAnalytics` folder of the instance.
2. Open the `Sitecore.ExperienceAnalytics.Aggregation.Processing.config` file.
3. Locate this node under the `factDelete` node:

    ```xml
    <param type="Sitecore.Analytics.Core.ConfigurationHelper, Sitecore.Analytics.Core" desc="interval" factoryMethod="ToTimeSpan" arg0="1.`00:00`:00"/>
    ```

4. Specify the value you want as the value of the `arg0` property in the format `<days>.<hours>:<minutes>:<seconds>`.