Skip to main content
Glama

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
NameRequiredDescriptionDefault
post_idYesThreads post ID to delete

Implementation Reference

  • 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 };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/meta-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server