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
| Name | Required | Description | Default |
|---|---|---|---|
| media_id | Yes | The ID of the media file to delete |
Implementation Reference
- src/tools/media.ts:37-54 (handler)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", }, ], }; } );