Delete Media
DELETE https://graph.facebook.com/{{Version}}/{{Media-ID}}/?phone_number_id=<PHONE_NUMBER_ID>
To delete media, make a DELETE call to the ID of the media you want to delete.
Prerequisites
-
User Access Token
with
whatsapp_business_messaging
permission - Media object ID from either uploading media endpoint or media message Webhooks
Request
Perform requests in Graph API Explorer
Request Params
| Key | Datatype | Required | Description |
| phone_number_id
| string | | Specifies that deletion of the media only be performed if the media belongs to the provided phone number. |
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: OK
{"success":true}