Actions50
- Message Actions
- Send Text
- Send Image
- Send Video
- Send Audio
- Send Document
- Send Sticker
- Send Location
- Request Location
- Send Buttons
- Send List
- Send CTA
- Send Product
- Get Catalogs
- Send Product List
- Send Catalog
- Send Flow
- Request Call Permission
- Send Contact
- Send Template
- Send and Wait for Response
- Send or Remove Reaction
- Mark as Read
- List Messages
- Get Message
- Platform Messages Actions
- Media Actions
- Contact Actions
- Conversation Actions
- Broadcast Actions
- Block User Actions
- Custom API Call Actions
Media → Delete
AI-generatedSummary
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.