# Delete Rules

You can delete the rules associated with an NSG. For example, you can delete rules defined for decommissioned resources or during security protocol updates. Understanding the implications of deleting rules to prevent unintended disruptions or vulnerabilities is mandatory.

To delete a rule, follow these steps:

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

2\. Select the **NAME** of the respective security group or click **View & Edit**.

![Select the NSG that contains the rules](/files/6M55tv75YcvZ25p6eGnl)

3\. Select the checkboxes in the **View & Edit Group** window and select:

* **Delete** to delete a rule.
* **Delete Rules** to delete a single or multiple rules at once.

![Delete options](/files/1LhFP96KSEi7AZPLrq0H)

4\. Select **Delete** in the **Delete firewall rule(s)** pop-window to confirm deletion.

{% hint style="success" %}
**Result:** The selected 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-rules.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.
