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