# $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>](https://fivesobes.gitbook.io/nexorm/methods/deletion-methods/broken-reference) |

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