Skip to main content
Glama

peach_delete_media

Remove media files from your Peach WhatsApp account by specifying the file ID to manage storage and content organization.

Instructions

Delete a media file from the Peach account by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
media_idYesThe ID of the media file to delete

Implementation Reference

  • The implementation of the peach_delete_media tool, including registration, schema definition, and the handler function that makes the API request.
    server.tool(
      "peach_delete_media",
      "Delete a media file from the Peach account by its ID",
      {
        media_id: z.string().describe("The ID of the media file to delete"),
      },
      async ({ media_id }) => {
        const result = await client.delete(`/api/v1/medias/${media_id}`);
        return {
          content: [
            {
              type: "text",
              text: result !== undefined ? JSON.stringify(result, null, 2) : "Media deleted successfully",
            },
          ],
        };
      }
    );

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/trypeach-io/mcp'

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