> 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/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/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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
