UNPKG

@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
# DatasetsManager.delete() **Added in:** `@mastra/core@1.4.0` Deletes a dataset by ID, including all items, versions, and experiments. ## Usage example ```typescript import { Mastra } from '@mastra/core' const mastra = new Mastra({ /* storage config */ }) await mastra.datasets.delete({ id: 'dataset-id' }) ``` ## Parameters **id** (`string`): ID of the dataset to delete. ## Returns **result** (`Promise<void>`): Resolves when the dataset is deleted.