DatasetsManager.delete()
添加于: @mastra/core@1.4.0
按 ID 删除数据集,包括其中的所有条目、版本和实验。
使用示例使用示例的直接链接
import { Mastra } from '@mastra/core'
const mastra = new Mastra({/* storage config */})
await mastra.datasets.delete({ id: 'dataset-id' })
参数参数的直接链接
id:
string
要删除的数据集 ID。
返回值返回值的直接链接
result:
Promise<void>
数据集删除后,Promise 完成。