# 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](https://docs.e6data.com/product-documentation/~/revisions/W5MExJCuvHiG1ioEcgOy/clusters/edit-and-delete-clusters#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](https://docs.e6data.com/product-documentation/~/revisions/W5MExJCuvHiG1ioEcgOy/setup/aws-setup/in-vpc-deployment-aws/setup-using-terraform-in-aws).
   2. Run: `terraform destroy`
