> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Pause and Resume Archiving

**Important: Feature unavailable in Flex Clusters**

Flex clusters don't support this feature at this time. To learn more, see [Atlas Flex Limitations.](https://www.mongodb.com/docs/atlas/reference/flex-limitations.md#std-label-flex-cluster-limitations)

You can pause and resume archiving from the Atlas CLI, Atlas UI, and API (Application Programming Interface). When you pause, previously archived documents continue to be available on the cloud object storage for querying, but archiving activity for the collection on your Atlas cluster is stopped until you resume archiving. You will continue to incur costs for storage on the cloud object storage and for reading data. When you resume archiving, data that meets the criteria for archiving is archived and archived data that meets the deletion age limit is deleted.

Atlas won't pause data expiration if you pause your Online Archive or Atlas cluster. Atlas will delete expired data.

You can pause an online archive and create another online archive for the same namespace. However, this second online archive cannot contain the same partition fields as the paused online archive. Additionally, only one online archive can be `Active`. If you try to resume a paused online archive when another online archive for the same namespace is `Active`, the resume operation fails. You must either delete or pause the `Active` online archive to resume archiving for the paused online archive.

## Required Access

To update, pause, or resume an online archive, you must have [`Project Data Access Admin`](https://www.mongodb.com/docs/atlas/reference/user-roles.md#mongodb-authrole-Project-Data-Access-Admin) access or higher to the project.

## Pause Archiving Through the Atlas CLI

To pause an online archive for a cluster using the Atlas CLI, run the following command:

```sh

atlas clusters onlineArchives pause <archiveId> [options]

```

To learn more about the command syntax and parameters, see the Atlas CLI documentation for [atlas clusters onlineArchives pause.](https://www.mongodb.com/docs/atlas/cli/current/command/atlas-clusters-onlineArchives-pause/)

## Pausing and Resuming Through the API

To pause an active online archive or resume a paused online archive through the API (Application Programming Interface), send a `PATCH` request to the [onlineArchives](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/group/endpoint-online-archive) endpoint with the unique ID of the online archive to pause or resume. To learn more about the syntax and options, see [API.](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-updategroupclusteronlinearchive)

## Pause Archiving Through the UI

To pause archiving, in your Atlas UI:

1. In Atlas, go to the Clusters page for your project.

   If it's not already displayed, select the organization that contains your desired project from the  Organizations menu in the navigation bar.

   If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

   In the sidebar, click Clusters under the Database heading.

   The [Clusters](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters) page displays.

2. Go to the Online Archive page for your cluster.

   In the sidebar, click Online Archive.

   The [Online Archive](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters%2FonlineArchive%2F%3Ccluster%3E) page displays.

3. Click the ellipsis (`...`) in the Actions column for the online archive to display the list of allowed actions. You can:

   - Pause Archiving (only if state is Active)

   - Edit Archive

   - Delete Archive

   - Resume Archiving (only if state is Paused)

4. Select Pause Archiving from the ellipsis menu to temporarily stop archiving data in the collection.

## Resume Archiving Through the Atlas CLI

To start a paused online archive for a cluster using the Atlas CLI, run the following command:

```sh

atlas clusters onlineArchives start <archiveId> [options]

```

To learn more about the command syntax and parameters, see the Atlas CLI documentation for [atlas clusters onlineArchives start.](https://www.mongodb.com/docs/atlas/cli/current/command/atlas-clusters-onlineArchives-start/)

## Resume Archiving Through the UI

To resume archiving, in your Atlas UI:

1. In Atlas, go to the Clusters page for your project.

   If it's not already displayed, select the organization that contains your desired project from the  Organizations menu in the navigation bar.

   If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

   In the sidebar, click Clusters under the Database heading.

   The [Clusters](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters) page displays.

2. Go to the Online Archive page for your cluster.

   In the sidebar, click Online Archive.

   The [Online Archive](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters%2FonlineArchive%2F%3Ccluster%3E) page displays.

3. Click the ellipsis (`...`) in the Actions column for the online archive to display the list of allowed actions. You can:

   - Pause Archiving (only if state is Active)

   - Edit Archive

   - Delete Archive

   - Resume Archiving (only if state is Paused)

4. Select Resume Archiving from the ellipsis menu to start archiving.

   **Note:**

   The Resume Archive option is only visible for online archives in Paused state.
