> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/action/clear.md).

# Clear

Clear removes the current value from an input. Use it before [Set value](/test-steps/action/set-value.md) when the field may already contain text, or when you need an empty field for the next assertion.

![Clear Test Step](https://app.does.qa/screenshots/node/action_input_clearValue.png)

## When to use it

* Empty a search box or form field before typing a new value.
* Prefer the **Clear Value** option on Set value when you clear and type in one step.

## Configure

### Basics

| Field       | What to set                                                  |
| ----------- | ------------------------------------------------------------ |
| **Element** | The input [Element](/elements/creating-elements.md) to clear |

### Advanced

| Field                                 | What to set                                          |
| ------------------------------------- | ---------------------------------------------------- |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md) |
| **When should screenshots be taken?** | `Always` (default) or `On Failures`                  |

## Related

* [Set value](/test-steps/action/set-value.md)
* [Send keys](/test-steps/action/send-keys.md)
* [Action](/test-steps/action.md)

**Tags:** `action`, `input`, `clear`, `clearValue`
