# How long can data be retained in InsightAPM?

**URL:** <https://forum.wise-paas.advantech.com/t/how-long-can-data-be-retained-in-insightapm/1610>\
**Category:** IoTEdge\
**Tags:** InsightAPM\
**Created:** [August 7, 2025, 9:55am UTC](https://forum.wise-paas.advantech.com/t/how-long-can-data-be-retained-in-insightapm/1610 "2025-08-07T09:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacey\_xiao](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jacey\_xiao](https://forum.wise-paas.advantech.com/u/jacey_xiao)\
**Post date:** [August 7, 2025, 9:55am UTC](https://forum.wise-paas.advantech.com/t/how-long-can-data-be-retained-in-insightapm/1610/1 "2025-08-07T09:55:11Z")

</div>

[Function Definition]  
The data retention configuration is used to set the duration for which data generated by the APM backend service is retained. By default, data is retained permanently.

[Application Scenario]  
When edge-end data is uploaded frequently, it can quickly fill up disk space and cause service unavailability. Based on the customer’s business scenario, if only recent data is of interest, a data retention policy can be configured to automatically clear old data from the database, thereby freeing up space.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/wisepaasforum/original/1X/da7ae31cf8d1f5c99208d0d0117441228890262e.jpeg)

Once the configuration is set, data will be cleared at the beginning of each month.
