@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
25 lines (15 loc) • 463 B
Markdown
**Added in:** `@mastra/core@1.4.0`
Deletes a dataset by ID, including all items, versions, and experiments.
```typescript
import { Mastra } from '@mastra/core'
const mastra = new Mastra({
/* storage config */
})
await mastra.datasets.delete({ id: 'dataset-id' })
```
**id** (`string`): ID of the dataset to delete.
**result** (`Promise<void>`): Resolves when the dataset is deleted.