> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/cherry3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/cherry3/other-operators/update-operators/usdpull.md).

# $pull

| Name                                                   | Usage Type                                    | Description                                                                                         |
| ------------------------------------------------------ | --------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| <mark style="background-color:green;">**$pull**</mark> | <mark style="color:orange;">**Object**</mark> | <mark style="background-color:yellow;">**$pull Operator is Used to Pull to Array Type Data**</mark> |

```javascript
/* Example Usage */
const model = ...Someone Model

(async () => {

await model.findOneAndUpdate({ name: "Test", age: 20, arr: ["test"] },{ $pull:{ arr:["test"] } });
// Or Other Usage
await model.findOneAndUpdate({ name: "Test", age: 20, arr: ["test"] },{ $pull:{ arr: function(data) { return data == "test" } } });

/*
The "arr" value that was ["test"] is now []
If you want to withdraw all the same values, use $multiPull:true in the Option Section
*/

})();

```
