# How to manage CDR cleaning

## How it works

Class 4 store CDRs to the local direct every minute and it is saved in a per minute file.  You can find the local CDRs from {installdir}/dnl\_softswitch/cdr.

{% hint style="info" %}
If you are installed using the standard RPM, AWS cloud image or Google cloud image, the default install path should be /opt/denovo
{% endhint %}

Class 4 automatically compresses the daily CDR into .tar.gz format.  The local CDR can be setup to be automatically cleaned.  You may also configure Class 4 to push the CDRs to remote storage such as FTP and Google Cloud bucket.  Class 4 also provides facility to automatically remove old CDRs from FTP and Google Cloud bucket after it has been stored for a period of time.&#x20;

If you are using old install, then you are likely be using dnl-backup-tool.  All new install started from March of 2021 should be using dnl-cloud-tool.  They both serves the same purpose but dnl-cloud-tool provides additional tools to monitor remote archive, manage remote archive, and search for CDR from remote archive.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v5cookbook.denovolab.com/maintainence/how-to-setup-auto-cdr-cleaning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
