# Element.clear

Clear a supported UIKit text field/view.

```js
element.clear()
```

## Arguments

No arguments.

## Returns

The same element.

## Example

```js
const element = UIHelper.waitForElement({id: "target", visible: true, enabled: true}, 5000);
element.clear();
```

## Also available as

`Element.clearValue`.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
