Skip to content

Delete an application

DELETE
/v1/Accounts/{auth_id}/Applications/{application_sid}
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.

auth_id
required
string

Your account Auth ID, or the Auth ID of a sub-account you own

Example

AC000000000000000000
application_sid
required
string

Application SID (a UUID) or numeric ID

Example

3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b

Status success, message "Application deleted\

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type application/json
string

Example generated

example

No 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

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}