DEL
Delete Media
Delete a stored media file for this instance.
API endpoint
https://waclient.com/api/delete_mediaExample:
curl -X DELETE \
'https://waclient.com/api/delete_media' \
-H 'Content-Type: application/json' \
--data '{
"path": "6A4B02A1XXXX/media/1750000000000_image.jpg",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"path": "6A4B02A1XXXX/media/1750000000000_image.jpg",
"deleted": true
}
}| Parameter | Description |
|---|---|
| path | File path returned by upload_media |
| instance_id | Your instance ID |
| access_token | Your access token |
POST is also accepted as an alternative to DELETE.