Phone Numbers - Release Phone Number
Releases a purchased phone number.
DELETE {endpoint}/phoneNumbers/{phoneNumber}?api-version=2025-06-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string (url) |
The communication resource, for example https://resourcename.communication.azure.com |
|
phone
|
path | True |
string |
Phone number to be released, e.g. +11234567890. |
|
api-version
|
query | True |
string |
Version of API to invoke |
Responses
| Name | Type | Description |
|---|---|---|
| 202 Accepted |
The service has accepted the request and will start processing later. It will return 'Accepted' immediately and include an 'Operation-Location' header. Client side should further query the operation status using the URL specified in 'Operation-Location' header. Headers
|
|
| Other Status Codes |
Failure |
Examples
Release phone number
Sample request
DELETE https://resourcename.communication.azure.com//phoneNumbers/+11234567890?api-version=2025-06-01
Sample response
Operation-Location: /phoneNumbers/operations/release_378ddf60-81be-452a-ba4f-613198ea6c28
operation-id: release_378ddf60-81be-452a-ba4f-613198ea6c28
release-id: 378ddf60-81be-452a-ba4f-613198ea6c28
Definitions
| Name | Description |
|---|---|
|
Communication |
The Communication Services error. |
|
Communication |
The Communication Services error. |
CommunicationError
The Communication Services error.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| details |
Further details about specific errors that led to this error. |
|
| innererror |
The inner error if any. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
CommunicationErrorResponse
The Communication Services error.
| Name | Type | Description |
|---|---|---|
| error |
The Communication Services error. |