delete_blog
Delete a blog post from a website by providing the website ID and blog post ID.
Instructions
Delete a blog post from a website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The website ID | |
| blog_id | Yes | The blog post ID to delete |
Implementation Reference
- server/index.js:698-710 (registration)The tool 'delete_blog' is registered using server.tool(). The schema defines two required parameters: website_id and blog_id. The handler makes a DELETE API call to /v1/workspace/website/{website_id}/blogs/{blog_id} and returns the result as JSON text.
server.tool( "delete_blog", "Delete a blog post from a website.", { website_id: z.string().describe("The website ID"), blog_id: z.string().describe("The blog post ID to delete"), }, { title: "Delete Blog Post", readOnlyHint: false, destructiveHint: true, openWorldHint: false }, async ({ website_id, blog_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/${blog_id}`, "DELETE"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } ); - server/index.js:706-709 (handler)The handler function for delete_blog: takes website_id and blog_id, performs a DELETE request to the API endpoint, and returns the JSON response as text content.
async ({ website_id, blog_id }) => { const data = await apiCall(`/v1/workspace/website/${website_id}/blogs/${blog_id}`, "DELETE"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - server/index.js:701-704 (schema)Input schema for delete_blog: requires website_id (string) and blog_id (string) as parameters.
{ website_id: z.string().describe("The website ID"), blog_id: z.string().describe("The blog post ID to delete"), },