Skip to main content

Unassign a phone number from a channel zone

DELETE 
/channel_zones/:channel_zone_id/channel_zone_phone_numbers/:phone_number

Unassign a phone number from a channel zone

Request

Path Parameters

    channel_zone_id stringrequired

    Channel zone identifier

    phone_number +E.164required

    The phone number to be looked up

Responses

200: The phone number is successfully deleted

default: Unexpected error

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/phone_numbers/channel_zones/:channel_zone_id/channel_zone_phone_numbers/:phone_number' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}