import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.recordings.delete(
    recording_id='9684e812-4b88-11e7-b285-02fb5b2555e7', )
print(response)
HTTP Status Code: 204

This API lets you delete a recording from your account using the recording ID.

You can retrieve the value of recording_id from List all recordings and Retrieve a recording API and pass them in the API endpoint.

API Endpoint

DELETE
https://api.plivo.com/v1/Account/{auth_id}/Recording/{recording_id}/

Arguments

No arguments need to be passed.

Returns

Returns 404 Not Found if the recording is not found for the given recording_id. Else, returns 204 without content.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.recordings.delete(
    recording_id='9684e812-4b88-11e7-b285-02fb5b2555e7', )
print(response)
HTTP Status Code: 204