---
schema_version: "1"
id: 1b6a468f0a8819f4827f99afd2af2638aa0317f9705bb2286b67b8948fcc9c53
title: Use Simplified, Consistent File Retention Rules
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_20_7_w7673164_retention_rules_la.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_20_7_w7673164_retention_rules_la.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0b75cba49c07bba7aad43d38d12ecabde464c5f77d799c18fd94a70ee8844480
description: New file retention rules are available for files in the /Logs, /Securitylogs, /Impex, and /Temp folders. Previously, different folders, instances, and environments used different file retention periods or no retention period at all. The new retention logic will be enabled after the 20.7 release. Download and save files you want to retain for longer than the new retention period.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Use Simplified, Consistent File Retention Rules

New file retention rules are available for files in the /Logs, /Securitylogs, /Impex, and /Temp folders. Previously, different folders, instances, and environments used different file retention periods or no retention period at all. The new retention logic will be enabled after the 20.7 release. Download and save files you want to retain for longer than the new retention period.

What: During the transition to the new retention logic, some instances have /Impex/\_trash and /Temp/\_trash folders that contain the files to be deleted for 30 days. You can recover files from the \_trash folders during that 30 days. Adjust your configuration so that you don't depend on the files in the \_trash folders since those files will be removed in a future release.

The new retention periods are as follows:

- /Logs: Files are compressed and moved into subfolder log\_archive after three days. Files are deleted after 30 days.
- /Securitylogs: Files are deleted after 90 days.
- /Impex and /Temp: Files are deleted after 30 days. Use the space in these folders carefully. Delete unnecessary files as soon as possible.

To avoid performance and stability problems, you can’t store more than 100,000 files in a folder. If there are more than 100,000 files in a folder, files are deleted starting with the oldest first even if the files are newer than the retention period for the folder. The 100,000 limit applies to files in one specific folder, not across subfolders.

#### See Also

- [Log File Types](https://documentation.b2c.commercecloud.salesforce.com/DOC3/topic/com.demandware.dochelp/content/b2c_commerce/topics/site_development/b2c_understanding_log_files.html)