import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.calls.delete(
    call_uuid='3a2e4c90-dcee-4931-8a59-f123ab507e60', )
print(response)
HTTP Status Code: 204

This method lets you hang up an ongoing call or cancel a queued outbound call. If you want to hang up an incoming call without answering it, see the documentation on the Hangup XML element.

API Endpoint

DELETE
https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/

If CallUUID is not specified, all ongoing calls in that account will get disconnected.

Arguments

No arguments need to be passed.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.calls.delete(
    call_uuid='3a2e4c90-dcee-4931-8a59-f123ab507e60', )
print(response)
HTTP Status Code: 204