> For the complete documentation index, see [llms.txt](https://cookbook.denovolab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cookbook.denovolab.com/data-access/raw-switch-data/auto-data-cleanup.md).

# Auto Data Cleanup

Class 4 provides utilizes to auto remote CDRs and PCAP from local disk.&#x20;

Here is how you can setup the following:

* number of days to keep local disk CDR
* number of days to keep CDR in DB
* number of days to keep PCAP in local disk&#x20;
