Kapso API icon

Kapso API

Send WhatsApp messages, templates, flows, media, contacts, broadcasts, and inbox records through Kapso. Choose a resource, then follow each operation setup hints.

Media → Delete

AI-generated

Summary

Delete a media file previously uploaded to Kapso's WhatsApp API using a connected Kapso WhatsApp phone number and the media's unique ID.

Inputs

  • Phone Number Name or ID — The connected Kapso WhatsApp phone number to use for this operation, selectable from a list loaded from your Kapso project or specified by ID via expression.
  • Media ID (required) — The unique ID of the media to delete, consisting of 1–32 digits, as returned by Upload Media or Kapso Trigger media attachment.

Output shape

a JSON response indicating the success or failure of the media deletion operation, typically containing status details from the Kapso API

No pagination applies. Errors may be returned in the response body according to Kapso API error format.

Examples

Example 1: Delete a specific media file by its Media ID using a selected WhatsApp phone number connected in Kapso.

Set 'Phone Number Name or ID' to the desired WhatsApp phone number from your Kapso account, and 'Media ID' to the ID of the media to delete.

Links

Discussion