> 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/frequently-asked-questions/how-do-copystorm-archives-work/how-to-setup-the-capstorm-recycle-bin.md).

# How to Setup the Capstorm Recycle Bin

By default, CopyStorm has a single snapshot policy named the *Default Recycle Bin.* The *Default Recycle Bin* is a regular snapshot policy, implemented using the same features available for custom snapshots, with a few limitations.

* The name of the *Default Recycle Bin* cannot be changed.
* The filter used by the *Default Recycle Bin* cannot be changed.

By default, the Default Recycle Bin is not enabled and you should make a few decisions before enabling it.

* Do you want to restrict the tables where the recycle bin is used?
* How many days do you want to keep records in the recycle bin?
* Do you want to keep records from some tables longer than others?

Once you have made these decisions and applied them to the *Default Recycle Bin*, simply enable the snapshot and CopyStorm will automatically manage the *Default Recycle Bin* as part of a backup.

## Example of a *Default Recycle Bin* Setup

Prior to setting up our recycle bin, we have made the following choices. (Your criteria will likely be different!)

* All tables except history and change event tables will be managed by the *Default Recycle Bin*.
* The default retention period for a record will be 90 days (after 90 days a record will be deleted from the snapshot).
* EmailMessages should be retained for a two full years.
* Accounts, Contacts, and Cases should be retained for a full year.

**Launch the Policy Editor for the&#x20;*****Default Recycle Bin***

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-d4af8d5fbb8c2e50ceaba8d244d3a28b61170109%2Fd56863bb-Edit-Policy-Link.png?alt=media)

**Set a 90 Day Default Record Retention Policy**

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-0fdb864fb81463c8fac5d850c82ddaeb74089a59%2Fd12ecef6-Set-Retention-Period..png?alt=media)

**Add Custom Record Retention Rules**

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-33bfc16974b7716c0237bdb463ced7535d678c4f%2F6bdb13ee-Custom-Retention-Period.png?alt=media)

**Select Tables to put in the Recycle Bin**

There are two basic ways to select the tables to include in the Recycle bin.

* A White List can be used to indicate the tables to include.
* A Black List can be used to indicate the tables to exclude. All tables not on the black list will be included.

For additional help see the [White/Black List documentation](/reference/archive-tab/archive-policy-editor/policy-filter-rules.md#white-and-black-lists).

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-f8eba394a2543c9c10f3028eaa028addd89b36f4%2F3d7d0b3b-Set-Tables.png?alt=media)

**Activate the&#x20;*****Default Recycle Bin***

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-75c0449668339c89882ed05192aff84fcb802b43%2F6e358de8-Activate-Policy.png?alt=media)

**Congratulations! You have successfully setup the Default Recycle Bin.**

![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-1f38a9587cf39d3ef5de858776b5b96f8bb65789%2Fdd9d5e9a-Finished.png?alt=media)
