---
schema_version: "1"
id: 2b46837fbbb6ee356d3ce7aba534f90d9a0b141fb06b1fb49d54b75ee3ccdb5f
title: New File Retention Rules Enabled for POD Sandbox and Primary Instances
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_retention_rules_b2c_21_1_w8553233_la.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_retention_rules_b2c_21_1_w8553233_la.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b45e29cd58b1e7dcc4bd949ebb0463fe3e879fedacdde71ed14869436685b84e
description: As previously announced, updated file retention rules are applied to 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. With the 21.1 release, the new retention logic is enabled for POD Sandbox and primary instances. Download and save files you want to retain for longer than the new retention period.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# New File Retention Rules Enabled for POD Sandbox and Primary Instances

As previously announced, updated file retention rules are applied to 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. With the 21.1 release, the new retention logic is enabled for POD Sandbox and primary instances. 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. Beginning with Release 21.2, the files are deleted immediately and not moved into \_trash folders.

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

- [Test Promotions Using the Promotions Tracing](https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fpricebooks%2Fb2c_optimized_price_books.html)