Delete media
DELETE
/{media_id}Deletes a file you uploaded, so its id can no longer be used. Messages already sent keep their copy.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
media_id*string
ID of the file, from Upload media or an incoming message webhook.
Query Parameters
phone_number_id*string
ID of your WhatsApp number that uploaded or received the file.
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://wa.hostmentor.com/v3/1166846181421424?phone_number_id=106540352242922" \ -H "apikey: YOUR_API_KEY"{ "success": true}