> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-HK/llms.txt # dataset.deleteItem() **新增於:** `@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.deleteItem({ itemId: 'item-id' }) ``` ## 參數 **itemId** (`string`): 要刪除的項目 ID。 ## 傳回值 **result** (`Promise`): 項目刪除後便會完成。