--- title: "Data Retention Policy in Tegsoft" slug: "data-retention-policy-in-tegsoft" tags: ["Data retention policy"] updated: 2025-11-06T19:58:08Z published: 2025-11-06T19:58:08Z canonical: "docs.tegsoft.com/data-retention-policy-in-tegsoft" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.tegsoft.com/llms.txt > Use this file to discover all available pages before exploring further. # Data Retention Policy in Tegsoft **Tegsoft data retention policy** clarifies **what data** should be stored or archived, **where** that should happen and **for how long**. This article covers the configuration steps to **customize how long data is retained in Tegsoft**. If you do not specify a data retention policy in your Tegsoft system, the database tables listed below are retained for the specified default duration. ```none ARCHIVE parameter count:13 ARCHIVE parameter [1]: TABLENAME:TBLCCCAMPCALLD 365 days ARCHIVE parameter [2]: TABLENAME:TBLPBXTRANSFER 365 days ARCHIVE parameter [3]: TABLENAME:TBLLOADS 90 days ARCHIVE parameter [4]: TABLENAME:TBLLOGINS 365 days ARCHIVE parameter [5]: TABLENAME:TBLAUTHLOG 365 days ARCHIVE parameter [6]: TABLENAME:TBLPBXRECLOG 365 days ARCHIVE parameter [7]: TABLENAME:TBLCCAGENTLOG 3650 days ARCHIVE parameter [8]: TABLENAME:ARCCCAGENTLOG 3650 days ARCHIVE parameter [9]: TABLENAME:TBLCCSDR 3650 days ARCHIVE parameter [10]: TABLENAME:ARCCCSDR 3650 days ARCHIVE parameter [11]: TABLENAME:TBLCCCDR 3650 days ARCHIVE parameter [12]: TABLENAME:ARCCCCDR 3650 days ARCHIVE parameter [13]: TABLENAME:TBLDMLLOG 30 days ``` ➤ **Sample Output:** ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image-1680601274794.png?sv=2026-02-06&spr=https&st=2026-11-17T23%3A15%3A25Z&se=2026-11-18T00%3A15%3A25Z&sr=b&sp=r&sig=XwWlSC%2B1P%2BJ%2B%2FkPlYuyP8iHVoKAkxtw%2FbI3VwAYYP9k%3D) If you want to customize these default data retention durations, please follow the steps below. **1.** Create a JSON file containing the following parameters. In the JSON file, **edit only the DURATION** (in days) parameter according to how long you want the data to be retained in the system. Other parameters **should not be changed** and different tables **should not be added or removed** in this JSON file. ```json [ { "TABLENAME": "TBLCCCAMPCALLD", "DATECOLUMNNAME": "MODDATE", "KEYCOLUMNNAME": "DIALID", "DURATION": 365 }, { "TABLENAME": "TBLPBXTRANSFER", "DATECOLUMNNAME": "MODDATE", "KEYCOLUMNNAME": "TRANSFERID", "DURATION": 365 }, { "TABLENAME": "TBLLOADS", "DATECOLUMNNAME": "MODDATE", "KEYCOLUMNNAME": "LOADID", "DURATION": 90 }, { "TABLENAME": "TBLLOGINS", "DATECOLUMNNAME": "LOGIN", "KEYCOLUMNNAME": "LOGINID", "DURATION": 365 }, { "TABLENAME": "TBLAUTHLOG", "DATECOLUMNNAME": "AUTHDATE", "KEYCOLUMNNAME": "LOGID", "DURATION": 365 }, { "TABLENAME": "TBLPBXRECLOG", "DATECOLUMNNAME": "LISTENDATE", "KEYCOLUMNNAME": "LOGID", "DURATION": 365 }, { "TABLENAME": "TBLCCAGENTLOG", "DATECOLUMNNAME": "BEGINDATE", "KEYCOLUMNNAME": "LOGID", "DURATION": 3650 }, { "TABLENAME": "ARCCCAGENTLOG", "DATECOLUMNNAME": "BEGINDATE", "KEYCOLUMNNAME": "LOGID", "DURATION": 3650 }, { "TABLENAME": "TBLCCSDR", "DATECOLUMNNAME": "EVENTDATE", "KEYCOLUMNNAME": "SDRID", "DURATION": 3650 }, { "TABLENAME": "ARCCCSDR", "DATECOLUMNNAME": "EVENTDATE", "KEYCOLUMNNAME": "SDRID", "DURATION": 3650 }, { "TABLENAME": "TBLCCCDR", "DATECOLUMNNAME": "CALLDATE", "KEYCOLUMNNAME": "CDRID", "DURATION": 3650 }, { "TABLENAME": "ARCCCCDR", "DATECOLUMNNAME": "CALLDATE", "KEYCOLUMNNAME": "CDRID", "DURATION": 3650 }, { "TABLENAME": "TBLDMLLOG", "DATECOLUMNNAME": "MODDATE", "KEYCOLUMNNAME": "LOGID", "DURATION": 30 } ] ``` **1.1. Additionally, data size can be configured for each delete attempt, this option is optional and default value is 200. Value can be increased/decreased with SIZE attribute:** ```json { "TABLENAME": "TBLCCCDR", "DATECOLUMNNAME": "CALLDATE", "KEYCOLUMNNAME": "CDRID", "DURATION": 14, "SIZE": 500 } ``` **2.** To upload this JSON file to the Tegsoft system, follow the steps below. ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image-1762459079428.png?sv=2026-02-06&spr=https&st=2026-11-17T23%3A15%3A25Z&se=2026-11-18T00%3A15%3A25Z&sr=b&sp=r&sig=Klf0igDl832Ms%2B6AHH8nJorW5dlaHRAE7GbwIjMkGYk%3D) **Step 1** – Click the System Management. **Step 2** – Click the Custom Application. **Step 3** – Click the Custom Application tab. **Step 4** – Click plus icon (**+**) to upload Data Retention Policy (JSON file). After uploading the JSON file to the Tegsoft system, your new data retention policy will take effect, and your data will be retained in the system based on this configuration. ➤ **Sample Output:** *In this sample output, the retention duration for the first two table have been changed.* **![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image-1680601675675.png?sv=2026-02-06&spr=https&st=2026-11-17T23%3A15%3A25Z&se=2026-11-18T00%3A15%3A25Z&sr=b&sp=r&sig=uqPfDRPIl3MkpjG3zylteK0HTK9iKXxYbnWNRAA2YGg%3D)** --- *Tegsoft makes no representations or warranties, either express or implied, by or with respect to anything in this document, and shall not be liable for any implied warranties of merchantability or fitness for a particular purpose or for any indirect, special or consequential damages.* *Copyright* © *2023, Tegsoft. All rights reserved.* *"Tegsoft" and Tegsoft’s products are trademarks of Tegsoft. References to other companies and their products use trademarks owned by the respective companies and are for reference purpose only.*