> For the complete documentation index, see [llms.txt](https://learn.capstorm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.capstorm.com/reference/archive-tab/run-archive-policy-retention-rules.md).

# Run Snapshot Policy Retention Rules

The *Run Snapshot Policy Retention Rules* feature is used to force a snapshot to look for records that should be deleted from the Snapshot based on its retention rules and then delete the records. This happens automatically for active *Snapshot Policies* as part of the regular CopyStorm backup process, so this feature is most useful for inactive *Snapshot Policies*.

The *Run Snapshot Policy Retention Rules* feature is accessed from the right-click context menu on the CopyStorm Snapshot tab.

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-96c79c05fdd792c93e2252e16b6aa41c788e1f20%2F005bd91c-Open-Retention-Rule-Dialog.png?alt=media)

There are only two parameter options when running retention rules.

* Search Batch Size — number of records that will be searched at once for potential deletion.
* Deletion Batch Size — number of records that will be deleted in a single database transaction.

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-e37cbcad56cf726b4ccb1e8f41758b10f09297ca%2Fd280567f-Retention-Rule-Dialog.png?alt=media)
