If 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_applicationString
The app_id of the new Application to which the Endpoints should be associated upon deletion of this Application.
Response
HTTP Status Code: 204
Example Request
1
2
3
4
5
6
7
8
9
10
11
importplivoclient=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)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## Example for Application Delete#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.applications.delete('15784735442685051')putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Example for Application deletevarplivo=require('plivo');(functionmain(){'use strict';// If auth id and auth token are not specified, Plivo will fetch them from the environment variables.varclient=newplivo.Client("<auth_id>","<auth_token>");client.applications.delete("15784735442685051",// app id).then(function(response){console.log(response);},function(err){console.error(err);});})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php/**
* Example for Application delete
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->applications->delete('15784735442685051');print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
packagecom.plivo.api.samples.application;importjava.io.IOException;importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.models.application.Application;/**
* Example for Application delete
*/classApplicationDelete{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");try{Application.deleter("15784735442685051").delete();System.out.println("Deleted successfully.");}catch(PlivoRestException|IOExceptione){e.printStackTrace();}}}
/**
* Example for Application Delete
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.Application.Delete(appId:"15784735442685051");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for Application deletepackagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.Applications.Delete("15784735442685051",)iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Println("Deleted successfully.")}
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
13
14
importplivoauth_id="Your AUTH_ID"auth_token="Your AUTH_TOKEN"p=plivo.RestAPI(auth_id,auth_token)# Delete an application
params={# ID of the application to be deleted
'app_id':'16631550192125875'}response=p.delete_application(params)printstr(response)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require'rubygems'require'plivo'includePlivoAUTH_ID="Your AUTH_ID"AUTH_TOKEN="Your AUTH_TOKEN"p=RestAPI.new(AUTH_ID,AUTH_TOKEN)# Delete an applicationparams={# ID of the application to be deleted'app_id'=>'16631550192125875'}response=p.delete_application(params)printresponse
1
2
3
4
5
6
7
8
9
10
11
12
13
varplivo=require('plivo');varp=plivo.RestAPI({authId:'Your AUTH_ID',authToken:'Your AUTH_TOKEN'});varparams={// ID of the application to be deleted'app_id':'16631550192125875'};// Create a new applicationvarresponse=p.delete_application(params);console.log(response);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?phprequire'vendor/autoload.php';usePlivo\RestAPI;$auth_id="Your AUTH_ID";$auth_token="Your AUTH_TOKEN";$p=newRestAPI($auth_id,$auth_token);/// Delete an Application$params=array(// ID of the application to be deleted'app_id'=>'16631550192125875');$response=$p->delete_application($params);print_r($response);?>
packageplivoexample;importjava.util.LinkedHashMap;importcom.plivo.helper.api.client.*;importcom.plivo.helper.api.response.application.GenericResponse;importcom.plivo.helper.exception.PlivoException;publicclassApp{publicstaticvoidmain(String[]args)throwsIllegalAccessException{Stringauth_id="Your AUTH_ID";Stringauth_token="Your AUTH_TOKEN";RestAPIapi=newRestAPI(auth_id,auth_token,"v1");// Modify an applicationLinkedHashMap<String,String>params=newLinkedHashMap<String,String>();// ID of the application to be deletedparams.put("app_id","16631550192125875");try{GenericResponseresp=api.deleteApplication(params);System.out.println(getFields(resp));}catch(PlivoExceptione){System.out.println(e.getLocalizedMessage());}}}
usingSystem;usingSystem.Collections.Generic;usingRestSharp;usingPlivo.API;namespaceapps{classProgram{staticvoidMain(string[]args){RestAPIplivo=newRestAPI("Your AUTH_ID","Your AUTH_TOKEN");// Delete an applicationIRestResponse<GenericResponse>res3=plivo.delete_application(newDictionary<string,string>(){{"app_id","16631550192125875"}// ID of the application to be deleted});// Prints the responseConsole.Write(res3.Content);}}}
// Example for Application deletepackagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.Applications.Delete("15784735442685051",)iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Println("Deleted successfully.")}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!