> For the complete documentation index, see [llms.txt](https://docs.e6data.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/product-documentation/~/changes/0iCkDjvnPldS7yucryRX/workspaces/delete-a-workspace.md).

# Delete a Workspace

{% hint style="danger" %}
Before you delete a workspace, you must do the following:

* Delete all the Endpoints and IP Sets before deleting the workspace.&#x20;
* Delete all clusters assigned to the workspace.
* Disconnect all the catalogs connected to the workspace.

Not doing so may result in orphaned resources that will need to be deleted manually.
{% endhint %}

You can delete an existing workspace by following these steps:

1. In the e6data Console:
   1. [Delete all clusters](/product-documentation/~/changes/0iCkDjvnPldS7yucryRX/clusters/edit-and-delete-clusters.md#deleting-clusters) assigned to the workspace.
   2. Disconnect all the catalogs connected to the workspace.
   3. Navigate to `Workspaces` and click the name of the workspace to be deleted,&#x20;
   4. Or click on the kebab menu and select the **delete** option.&#x20;
   5. Click **Delete Workspace**
2. In your local Terraform environment:
   1. Navigate to the folder containing the Terraform script used to [deploy the Workspace](/product-documentation/~/changes/0iCkDjvnPldS7yucryRX/setup/aws-setup/setup-using-terraform-in-aws.md).
   2. Run: `terraform destroy`
