threads_delete_post
Delete a Threads post permanently using its ID. This irreversible action is rate limited to 100 deletions per 24 hours.
Instructions
Delete a Threads post. This action is irreversible. Rate limited to 100 deletions per 24 hours.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Threads post ID to delete |
Implementation Reference
- src/tools/threads/publishing.ts:184-199 (handler)The handler and registration for "threads_delete_post" are implemented within the server.tool call in src/tools/threads/publishing.ts.
// ─── threads_delete_post ────────────────────────────────────── server.tool( "threads_delete_post", "Delete a Threads post. This action is irreversible. Rate limited to 100 deletions per 24 hours.", { post_id: z.string().describe("Threads post ID to delete"), }, async ({ post_id }) => { try { const { data, rateLimit } = await client.threads("DELETE", `/${post_id}`); return { content: [{ type: "text", text: JSON.stringify({ success: true, ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Delete post failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );