# 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/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/setup/aws-setup/in-vpc-deployment-aws/setup-using-terraform-in-aws.md).
   2. Run: `terraform destroy`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.e6data.com/product-documentation/workspaces/delete-a-workspace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
