> 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/remove/remove-with-condition.md).

# remove with condition

To remove an item object in an array of objects, you can write the value key of the object you want to remove.

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

**Example**\
Remove user with **id=8** in **Users**

```javascript
dispatch(remove('Users', 8, 'id'))
```

<figure><img src="https://2096029297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa8hQdsN7Pv00B1Pt9tuc%2Fuploads%2FQC8BasQMtI1g5PfcP16l%2F68747470733a2f2f766e73656174746c652e636f6d2f64796e616d6963526564756365722f72656d6f76654974656d41727261792e706e67.png?alt=media&amp;token=196d7fa3-a23f-4af2-8189-5b47b529d926" alt=""><figcaption></figcaption></figure>

<br>
