# Delete Network Security Groups

You can delete an NSG if it is no longer needed to avoid potential security risks. Outdated NSGs allow unauthorized access to resources, resulting in security vulnerabilities. Deleting an NSG also deletes the rules associated with the respective NSG.

To delete an NSG, follow these steps:

1\. In the **DCD**, go to **Menu** > **Security** > **Network Security Groups**.

2\. Select **Delete** to delete the respective security group.

![Delete options](/files/0N34vpqv8BJRHiFQp2ON)

Alternatively, you can also select the **NAME** of the respective security group and select **Delete** in the **View & Edit Group** window.

![Delete options](/files/607wxV3opMJT7ZZSDocI)

3\. Select **Delete** to confirm deletion in the **Delete security group** pop-up window.

![Delete options](/files/8NBnijWhil6Iwq2Jp7bF)

{% hint style="success" %}
**Result:** The selected security group and its associated rules are queued for deletion and eventually deleted.
{% endhint %}


---

# 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.ionos.com/cloud/security/network-security-groups/how-tos/delete-nsgs.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.
