> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # dataset.deleteExperiment() **添加于:** `@mastra/core@1.4.0` 按 ID 删除实验(运行),包括所有关联结果。 ## 使用示例 ```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。 ## 返回值 **result** (`Promise`): 实验及其结果删除后,Promise 完成。