@mastra/core
Version:
29 lines (17 loc) • 581 B
Markdown
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
**Added in:** `@mastra/core@1.4.0`
Deletes a single item from the dataset by ID.
```typescript
import { Mastra } from '@mastra/core'
const mastra = new Mastra({
/* storage config */
})
const dataset = await mastra.datasets.get({ id: 'dataset-id' })
await dataset.deleteItem({ itemId: 'item-id' })
```
**itemId** (`string`): ID of the item to delete.
**result** (`Promise<void>`): Resolves when the item is deleted.