> For the complete documentation index, see [llms.txt](https://lenn.gitbook.io/db-local/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lenn.gitbook.io/db-local/methods/remove.md).

# .remove()

Remove a document

| Parameter | Description                                                                                                      |                                                                                                                                                                     |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \_id      | <p>​<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number​</a></p><p>The id of the document that will be removed</p> |

```javascript
User.remove({ _id: 1 }) // true
```

Or remove a user from find:

```javascript
const userFound = User.find({ _id: 1 })
userFound.remove() // true
```
