delete_item
Remove articles from Qiita platform by providing the article ID. Delete specific posts to manage content on the Japanese developer community.
Instructions
指定された記事を削除します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID |
Implementation Reference
- src/tools/handlers.ts:104-107 (handler)The handler for the 'delete_item' tool. It uses itemIdSchema for input validation and delegates to QiitaApiClient.deleteItem(itemId).delete_item: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.deleteItem(itemId), },
- src/tools/definitions.ts:278-291 (schema)The MCP tool definition including name, description, and inputSchema for 'delete_item'.{ name: 'delete_item', description: '指定された記事を削除します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
- src/qiitaApiClient.ts:99-103 (helper)The QiitaApiClient.deleteItem method that performs the actual HTTP DELETE request to the Qiita API to delete the item.async deleteItem(itemId: string) { this.assertAuthenticated(); const response = await this.client.delete(`/items/${itemId}`); return response.data; }