# dataset.deleteItems()

**Added in:** `@mastra/core@1.4.0`

Deletes multiple items from the dataset in a single bulk operation.

## Usage example

```typescript
import { Mastra } from '@mastra/core'

const mastra = new Mastra({
  /* storage config */
})

const dataset = await mastra.datasets.get({ id: 'dataset-id' })

await dataset.deleteItems({
  itemIds: ['item-1', 'item-2', 'item-3'],
})
```

## Parameters

**itemIds** (`string[]`): Array of item IDs to delete.

## Returns

**result** (`Promise<void>`): Resolves when all items are deleted.