Delete All Voicemail Messages of an Extension

Delete all the voicemail messages of an extension, either left via calls or via API.

Request URL

GET {base_url}/{api_path}/vm/delete_extension_vm?access_token={access_token}

Request parameters

Parameter Required Type Description
vm_to_number Yes String The extension number to which the voicemail message was left.

Response parameters

Table 1.
Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Examples

Request example

Delete all the voicemail messages left to extension 1005.

GET /openapi/v1.0/vm/delete_extension_vm?access_token=UN4AwGY5YMn2tQDqM8LoRi9oPeInD0oP&vm_to_number=1005 HTTP/1.1
Host: 192.168.5.150:8088
User-Agent: OpenAPI

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}