This API deletes an Application permanently.

API Endpoint

DELETE
https://api.plivo.com/v1/Account/{auth_id}/Application/{app_id}/

Arguments

NameTypeDescription
cascadeBooleanIf cascade is set to true, the Endpoints associated with the Application, if any, are also deleted.
When set to false, the Endpoints associated with the Application, if any, are not deleted. If a new_endpoint_application has been specified, then the Endpoints are reassociated with the given Application.
If a new_endpoint_application is not specified, then the Endpoints remain orphaned (i.e. not associated with any Application).
Defaults to true.
new_endpoint_applicationStringThe app_id of the new Application to which the Endpoints should be associated upon deletion of this Application.

Request

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.applications.delete(
    app_id='21686794894743506', )
print(response)

# You can updated an application directly using the application object
application = client.applications.get('21686794894743506')
application.delete()
print(response)

Response

HTTP Status Code: 204