# Chat Data Retention Policy The Treasure Data AI Agent Foundry stores customer's chat history data in a certain period that the administrator users configured. The default number is 28 days. The administrator users can choose the number of days from 14, 28, and 60 days as preferrence through the Console. Note Once the retention period ends, your chat history will be permanently deleted and cannot be recovered. 1. Navigate to `Control Panel` 2. Click Chat Data Retention menu 3. Authenticate if the `Validate access` modal is popped up ![Validate access popup](/assets/chat-data-retention-policy-validate-access.e8e3b00658084aebcf86c011c094bf3bf592dfe6d89357dd9dd71b4d727cb9a8.91c26685.png) 1. Detail page is shown ![Detail page](/assets/chat-data-retention-policy-detail-page.ffeecd9c121df5ed774034e228760243ffff8404bcf434de42404ca71394ee11.91c26685.png) 1. Click `pencil` icon 2. Choose a number of days from 14/28/60 and save ![Edit modal](/assets/chat-data-retention-policy-edit.fd70423cb361af1b68f04a67c219837b9a8af596435eb42ff276bfaa2f52fd16.91c26685.png)