delete_article
Remove articles from Zendesk Guide by specifying the article ID to delete unwanted or outdated help content.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Article ID to delete |
Implementation Reference
- src/tools/help-center.js:141-156 (handler)The handler function that executes the 'delete_article' tool logic, invoking the Zendesk client and formatting success/error responses.handler: async ({ id }) => { try { await zendeskClient.deleteArticle(id); return { content: [{ type: "text", text: `Article ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting article: ${error.message}` }], isError: true }; } }
- src/tools/help-center.js:138-140 (schema)Input schema using Zod for validating the article ID parameter.schema: { id: z.number().describe("Article ID to delete") },
- src/tools/help-center.js:136-136 (registration)The tool is registered with the name 'delete_article' within the helpCenterTools array.name: "delete_article",
- src/zendesk-client.js:277-279 (helper)Helper method in ZendeskClient that performs the actual DELETE request to the Help Center articles API endpoint.async deleteArticle(id) { return this.request("DELETE", `/help_center/articles/${id}.json`); }