[Yandex Cloud documentation](../../../index.md) > [Yandex Security Deck](../../index.md) > [Step-by-step guides](../index.md) > [Cloud Security Posture Management (CSPM)](index.md) > Deleting a custom rule

# Deleting a custom rule

To work with [custom rules](../../concepts/custom-rules.md), you need the `security-deck.rules.editor` [role](../../security/cspm-roles.md) or higher.

{% list tabs group=instructions %}

- Security Deck UI {#cloud-sd}

  1. Go to [Yandex Security Deck](https://center.yandex.cloud/security/).
  1. In the left-hand panel, select ![file-text](../../../_assets/console-icons/file-text.svg) **Rules and exceptions**.
  1. At the top of the window, select the [workspace](../../concepts/workspace.md).
  1. Go to the **Custom** tab.
  1. Next to the rule, click ![image](../../../_assets/console-icons/ellipsis.svg) and select ![image](../../../_assets/console-icons/trash-bin.svg) **Delete**.
  1. In the window that opens, confirm the deletion.

{% endlist %}

#### Useful links {#see-also}

* [Custom rules](../../concepts/custom-rules.md)
* [Creating a custom rule](create-custom-rule.md)
* [Editing a custom rule](edit-custom-rule.md)
* [Custom rule sets](../custom-rules-sets/index.md)