> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How long are files saved in Langdock?

> Understand how long files are stored in Langdock and how data retention policies affect chats, agents, and folders.

Files are connected to either a chat, an agent or a folder. To remove a file, you can delete the according entity. When a chat, an agent or a folder is deleted, connected files are deleted immediately and can not be retrieved.

To manage how long chats are saved, Langdock has a data retention period that can be set by admins. Chats which have not been used in the defined period are deleted automatically. You can read more about this [here](/en/admin/workspace/workspace#chat).
