@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
27 lines (16 loc) • 567 B
Markdown
**Added in:** `@mastra/core@1.4.0`
Deletes an experiment (run) by ID, including all associated results.
## 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.deleteExperiment({ experimentId: 'exp-id' })
```
**experimentId** (`string`): ID of the experiment to delete.
**result** (`Promise<void>`): Resolves when the experiment and its results are deleted.