> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-TW/llms.txt # DatasetsManager.delete() **新增於:** `@mastra/core@1.4.0` 依 ID 刪除資料集,包括其中的所有項目、版本和實驗。 ## 使用範例 ```typescript import { Mastra } from '@mastra/core' const mastra = new Mastra({/* storage config */}) await mastra.datasets.delete({ id: 'dataset-id' }) ``` ## 參數 **id** (`string`): 要刪除的資料集 ID。 ## 傳回值 **result** (`Promise`): 資料集刪除後,Promise 完成。