Delete an application
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications/3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications/3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b \ --header 'Authorization: Basic <credentials>'Deletes an application of the account, found by SID or numeric ID. The application is marked deleted and disappears from fetch and list. It cannot be deleted while an active phone number, a SIP domain or a SIP endpoint of the account still uses it: the call answers 404 with "you can not delete application as it has reference in phone numbers" (or "… in sip domains", "… in sip accounts"). Only reseller (vendor) and superuser accounts may delete a global application.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID, or the Auth ID of a sub-account you own
Example
AC000000000000000000Application SID (a UUID) or numeric ID
Example
3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5bResponses
Section titled “ Responses ”Status success, message "Application deleted\
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleNo such application in the account, it is still in use by a number, SIP domain or SIP endpoint, or it is global and the account may not delete it
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}