Delete Voicemail Files

Delete voicemail files of a specific extension.

Endpoint

POST /api/v1.1.0/voicemail/delete?token={token}

Request Parameters

Name Importance Type Description
extid Yes Int Delete which extension's voicemail file.
voicemailfile Yes String The name of the voicemail file.
  • Enter a name of a voicemail file to delete the specific file.
  • Set to all to delete all the voicemail files that are in specific voicemail status.
voicemailstatus Yes String The voicemail status.
  • read: Delete the voicemail files that were read.
  • unread: Delete the voicemail files that are unread.
  • all: Ignore the voicemail status, and delete the specific voicemail file or all files.

Examples

Request Example
POST /api/v1.1.0/voicemail/delete?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: api.yeastarcloud.com
{
    "extid": "1000",
    "voicemailfile": "msg0000.wav",
    "voicemailstatus": "read"
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success"
}