---
title: Deleting a Test From a Condition
description: "A rule condition consists of one or more tests which are grouped together logically. You may delete a test from the condition. [![test-popup-menu](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu.png)](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu.png) ## Procedure 1. In the **displayed rules** view, double click anywhere on the rule you want to…"
url: "https://www.stilo.com/docs/migrate/editing-rules/deleting-a-test-from-a-condition/"
updated: "2021-04-24"
category: Rules / Editing Rules
tags:
  - Rules
---

# Deleting a Test From a Condition

A rule condition consists of one or more tests which are grouped together logically. You may delete a test from the condition.

[![test-popup-menu](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu.png)](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu.png)

## Procedure

1. In the **displayed rules** view, double click anywhere on the rule you want to update.
   1. This places the rule in edit mode.
2. Right click on the test you would like to delete.

   1. The row you selected will have a green background highlight.
3. Click **Delete**.

## Result

The test has been removed from the rule. If the test you suggested was a*logical group* test or a contains element test, then the entire test including the nested parts will be deleted. You can of course delete just one test inside such a composed test by deleting one of its child rows.

# Once you are done

Although the rule has been updated 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

- [Deleting a Rule](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-rule/)
- [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/)
- [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/)
