Delete Phone Number
Delete a phone number. This will release the number from your account.curl -X DELETE "https://api.example.com/api/v1/phone_numbers/1" \
-H "X-API-Key: your-api-key-here"
const phoneNumberId = 1;
const response = await fetch(`https://api.example.com/api/v1/phone_numbers/${phoneNumberId}`, {
method: 'DELETE',
headers: {
'X-API-Key': 'your-api-key-here'
}
});
const data = await response.json();
import requests
phone_number_id = 1
headers = {
'X-API-Key': 'your-api-key-here'
}
response = requests.delete(
f'https://api.example.com/api/v1/phone_numbers/{phone_number_id}',
headers=headers
)
data = response.json()
{
"status": {
"code": 200,
"message": "Phone number deleted successfully"
}
}
