Delete a termination trunk
const url = 'https://api.siprtc.io/v1/Accounts/example/Trunks/Termination/1';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/example/Trunks/Termination/1 \ --header 'Authorization: Basic <credentials>'Deletes one of your termination trunks, together with its carrier registration, its reachability checks and any per-trunk rates. Outbound calls it carried go out over your other trunks or the platform’s routes from then on.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID (20 characters). The request always acts on the authenticated account.
Trunk ID, as returned by create or list
Responses
Section titled “ Responses ”Deleted
Invalid trunk ID, or the SIP proxy could not remove the trunk’s registration
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}Missing or wrong Auth ID / Auth Secret (answered by the API gateway)
Example generated
exampleSigned in as a sub-user (portal login) rather than the account owner: only the owner can change trunks
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}No trunk with this ID on your account
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}