This request will delete the specified number.
If the number is part of a range, the entire range will be deleted.
| URL | https://api.telecomx.dk/number/NUMBER_ID | |
|---|---|---|
| Method | DELETE | |
| Access level | RESELLER_ADMIN with PORTING feature or ADMIN. | |
| Param | NUMBER_ID | Id of the number (E.164 format) |
DELETE https://api.telecomx.dk/number/+4570305050
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Number not found in request URI |
| 409 | _id | Number is in use and cannot be deleted |
| 409 | range | One or more numbers are in use and cannot be deleted |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Number not found |