> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive or delete a workspace

> Archive a workspace to hide it, or delete it to remove its rules and versions.

You can archive a workspace to take it out of the lists while keeping everything in it. You can also delete it to remove its rules and versions for good. NexusOne keeps the audit records in both cases and adds an event for the removal.

> [!WARNING]
>
> Deleting a workspace can't be undone.

## Prerequisites

Before starting this task, ensure you have the following:

* Required role: [`nx1_decisions_admin`](https://docs.nx1cloud.com/documentation/govern/tasks/iam/role/assign-a-role)
* A [workspace with no published rules](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/workspaces/create-a-workspace.md)

## Steps

> [tab] Web portal
>
> Perform these steps to archive or delete a workspace:
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Data** and then select **Business Rules**.
> 3. Select a workspace.
> 4. Click **Remove**. If a workspace has anything live, then the dialog asks you to unpublish it first and offers no options.
> 5. Choose one of the following:
>
>    * To archive a workspace, click **Archive workspace**.
>    * To delete a workspace for good, type its identifier under **Delete permanently** and then click **Delete permanently**.

> [tab] REST API
>
> Use the [Archive a workspace or delete it and everything in it](https://docs.nx1cloud.com/api-reference/endpoints/decisions/archive-a-workspace-or-delete-it-and-everything-in-it.md) endpoint to archive or delete a workspace.
>
> To delete a workspace instead of archiving it, set `purge` to `true`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.