> For the complete documentation index, see [llms.txt](https://docs.no-reducer.com/no-reducer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.no-reducer.com/no-reducer/no-reducer-actions/clear/clear-an-array-item.md).

# clear an array item

You can also use the **clear** action to remove an item from an array based on a specified condition, just like with other actions.

```javascript
dispatch(clear('DESTINATION',CONDITION-VALUE,CONDITION-KEY));
```

**Example**: Clear Users with id = 7

```javascript
dispatch(clear('Users', 7, 'id'))
```

<figure><img src="https://2096029297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa8hQdsN7Pv00B1Pt9tuc%2Fuploads%2F2K7m5N8WYTkYEF2Zdw1F%2F68747470733a2f2f766e73656174746c652e636f6d2f64796e616d6963526564756365722f636c6561724974656d496e416e41727261792e706e67.png?alt=media&amp;token=61aeec18-9dff-4ae9-8f41-fda077ffef5a" alt=""><figcaption></figcaption></figure>

<br>

<br>

\ <br>
