> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/security/network-security-groups/how-tos/detach-nsgs.md).

# Detach a Server or NIC from a Network Security Group

You can detach a server or Network Interface Card (NIC) from an NSG if its security policies are no longer needed.

To remove a server or NIC from an NSG , follow these steps:

1\. In the **DCD**, go to **Menu** > **Virtual Data Centers** and select the data center from **My Virtual Data Centers**.

2\. Depending on whether you want to detach a server or NIC from an NSG, perform the following action:

{% tabs %}
{% tab title="Detach a Server from an NSG" %}
1\. In the Inspector pane, select the data center and go to the **Settings** tab.

2\. Under the **Network Security Groups**, click **Delete**![Delete icon](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-c095feb60eac79f23a87e33959ac42abb3215dc5%2Fdelete-icon.png?alt=media) next each NSG.

3\. In the confirmation message, select OK.

![Detach a Server from an NSG](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-aa3d3155d1a2440daef4edaaa1c67cce9e83b7eb%2Fdetach-server-nsg.png?alt=media)
{% endtab %}

{% tab title="Detach an NIC from an NSG" %}
1\. In the Inspector pane, select the data center and go to the **Network** tab.

2\. Open the properties of the NIC for which you want to remove an NSG.

3\. Under the **Network Security Groups**, click **Delete**![Delete icon](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-c095feb60eac79f23a87e33959ac42abb3215dc5%2Fdelete-icon.png?alt=media) next each NSG.

![Detach an NIC from an NSG](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-d4a4c912ebc966cf1152110307275b5ea86ddc2d%2Fdetach-nic-nsg.png?alt=media)
{% endtab %}
{% endtabs %}

3\. Provision your changes.

{% hint style="success" %}
**Result:** This action removes a server or an NIC associated with that NSG.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/security/network-security-groups/how-tos/detach-nsgs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
