# Deregister a Connection

{% hint style="warning" %}
**Cleaning up your Snowflake environment**\
Until you manually run the cleanup script in your Snowflake environment, Immuta-managed [roles](https://documentation.immuta.com/saas/configuration/snowflake/reference-guides/table-grants-overview#table-grants-role) and Immuta policies will still exist in Snowflake.
{% endhint %}

1. Click <i class="fa-database">:database:</i> **Data** in the navigation menu and select **Connections**.
2. Click the **overflow menu** in the Actions column and select **Delete Host**.
3. Download the cleanup script provided in the modal that appears. If your connection does not support Immuta policies, you don't need to run a cleanup script, since Immuta does not create any roles or policies in your environment for those connections.
4. Click **Delete Host** again to confirm.


---

# 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://documentation.immuta.com/saas/configuration/integrations/data-and-integrations/registering-a-connection/how-to-guides/deregister-a-connection.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.
