Skip to content

Delete a media item

DELETE
/v1/Accounts/{auth_id}/Media/{media_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Media/1042 \
--header 'Authorization: Basic <credentials>'

Deletes one of your own media items and its stored file. The TIFF rendering is kept so faxes already queued with the item can still be sent. Global items can be deleted only by vendor and superuser accounts. Before deleting audio, the Contact Center service is asked to release it from hold-music use; if it refuses, its HTTP status and message are returned as they are. The response has no body.

auth_id
required
string

Your account’s Auth ID (20 upper-case letters and digits).

Example

AC000000000000000000
media_id
required
integer

Media id.

Example

1042

Deleted.

Malformed media id (message ‘invalid media_id’), or the Contact Center service could not be reached for an audio item.

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

Missing or wrong credentials, or credentials that may not act for {auth_id}. Body: ‘Authentication failed’.

Media type application/json
string

Example generated

example

No such media item on this account (message ‘media not found’).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

The item could not be deleted (message ‘media request failed’), including a global item deleted by a non-vendor account.

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}