---
title: Deleting a Rule
description: "## Procedure 1. In the **rules grid** view, click to select the rule you want to delete. 2. Right click on the rule and select Delete from the context menu that appears. 1. The rule now has a strikethrough in…"
url: "https://www.stilo.com/docs/migrate/editing-rules/deleting-a-rule/"
updated: "2021-04-24"
category: Rules / Editing Rules
tags:
  - Rules
---

# Deleting a Rule

## Procedure

1. In the **rules grid** view, click to select the rule you want to delete.
2. Right click on the rule and select Delete from the context menu that appears.
   1. The rule now has a strikethrough in the Name column.
3. If you have deleted the wrong rule, or you change your mind and do not want to delete the rule after all, right-click on the rule again and select Undelete from the context menu.
   1. The strikethrough in the Name column has been removed.

## Result

The rule has been deleted from the rule set. The rule will still be visible in the **displayed rules** view and **rules grid**, but its name will have a strikethrough, and the rule will be greyed out in the **displayed rules** view.

## Once you are done

Although the rule has been deleted within the rules editor, the change has not yet been propagated to the portal. To commit the change to the portal, you must save the rule set.

#### Prerequisite Concepts

- [Edit Mode](https://www.stilo.com/docs/migrate/getting-started-rules/edit-mode/)

#### Supporting Reference Material

- [Style Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/style-test/)
- [Property Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/property-test/)
- [Logical Group Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/logical-group-test/)
- [Content Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/content-test/)
- [Context Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/context-test/)
- [Contains Element Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/contains-element-test/)
- [Patterns](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/patterns/)

#### Related Tasks

- [Turning a rule on or off](https://www.stilo.com/docs/migrate/editing-rules/turning-a-rule-on-or-off/)
- [Commenting a rule](https://www.stilo.com/docs/migrate/editing-rules/commenting-a-rule/)
- [Adding a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/adding-a-test-in-a-condition/)
- [Deleting a Test From a Condition](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-test-from-a-condition/)
- [Moving a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/moving-a-test-in-a-condition/)
- [Adding an Annotation](https://www.stilo.com/docs/migrate/editing-rules/adding-an-annotation/)
- [Deleting an Annotation](https://www.stilo.com/docs/migrate/editing-rules/deleting-an-annotation/)
- [Moving an Annotation](https://www.stilo.com/docs/migrate/editing-rules/moving-an-annotation/)
