Skip to main content

Delete a phone number extension

DELETE 
/porting_orders/:porting_order_id/phone_number_extensions/:id

Deletes a phone number extension.

Request

Path Parameters

    porting_order_id uuidrequired

    Identifies the Porting Order associated with the phone number extension

    id uuidrequired

    Identifies the phone number extension to be deleted

Responses

200: Successful response

404: Not found

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/porting_orders/:porting_order_id/phone_number_extensions/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
"porting_phone_number_id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
"extension_range": {
"start_at": 1,
"end_at": 10
},
"activation_ranges": [
{
"start_at": 1,
"end_at": 10
}
],
"record_type": "porting_phone_number_extension",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
}