Skip to main content

Deletes stored media

DELETE 
/media/:media_name

Deletes a stored media file.

Request

Path Parameters

    media_name stringrequired

    Uniquely identifies a media resource.

Responses

204: The media was deleted successfully.

default: Unexpected error

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/media/:media_name' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}