> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/nexorm/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/nexorm/methods/deletion-methods/usddeletemany.md).

# $deleteMany

Delete multiple records from the table based on the provided conditions. The $deleteMany method is used to remove multiple entries in a single operation. If soft delete is enabled, the records are marked as deleted without being permanently removed; otherwise, they are permanently deleted. This method is ideal for batch deletion operations.

| Query          | Parameter's                                                                                                                     |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **`$where`**   | <mark style="color:yellow;">**`<StaticProps>`**</mark>                                                                          |
| **`$options`** | <mark style="color:blue;">⇒</mark> [<mark style="color:green;">**`<FindOptions>`**</mark>](broken://pages/09lM7s4YrcyDgm9Uz8Ri) |

```typescript
await Member.$deleteMany({
    $where: {
        isPremium: false
    },
    $options: {
        $force: false,
        $limit: 5,
        $truncate: true
    }
});
```
