Release a dedicated IP
Release the dedicated IP to Telnyx. The IP stops carrying mail immediately, leaves its pool, and moves to released. Telnyx sets quarantine_until to 30 days after release. Release requests that the MRC stop asynchronously. Check billing: stopping means the stop is pending, stopped means it completed, and stop_failed means the charge remains. If the charge was never created or its creation has not completed, billing keeps showing the creation status (not_started, pending, in_progress, or failed). Any status except released can be released. Releasing the last IP in a pool requires force=true and drain=true.
DELETE
/
email
/
dedicated_ips
/
{id}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.email.dedicatedIps.delete('id');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.email.dedicated_ips.delete(
id="id",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Email.DedicatedIps.Delete(
context.TODO(),
"id",
telnyx.EmailDedicatedIPDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.email.dedicatedIps.DedicatedIpDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
DedicatedIpDeleteParams params = DedicatedIpDeleteParams.builder()
.build();
client.email().dedicatedIps().delete("id", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
dedicated_ip_show = telnyx.email.dedicated_ips.delete("id")
puts(dedicated_ip_show)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$dedicated_ip_show = $client->email->dedicatedIps->delete(
'id',
);
var_dump($dedicated_ip_show);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx email:dedicated-ips delete \
--api-key 'My API Key' \
--id idcurl --request DELETE \
--url https://api.telnyx.com/v2/email/dedicated_ips/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "No longer needed"
}
'{
"data": {
"id": "6a7f9a30-1234-4b5c-8d9e-0f1a2b3c4d5e",
"record_type": "dedicated_ip",
"ip_address": "64.16.239.170",
"ip_version": "ipv4",
"pool_id": null,
"region": "ewr-nj1",
"status": "released",
"warmup": {
"started_at": null,
"progress": 0,
"daily_cap": null,
"paused": false,
"paused_at": null,
"today": null
},
"billing": {
"status": "stopping",
"charged": true
},
"provisioning_status": "not_applicable",
"provisioning": {
"dns_status": "not_applicable",
"ptr_request_state": "confirmed",
"ptr_request_pr_url": null,
"checklist": {
"ptr_requested": true,
"ptr_authored": false,
"ptr_merged": true,
"forward_confirmed": true
}
},
"ptr_hostname": "mta-64-16-239-170.msgtelnyx.com",
"dns_confirmed_at": "2026-10-14T20:12:41.552310Z",
"quarantine_until": "2026-11-23T22:00:00.000000Z",
"released_at": "2026-10-24T22:00:00.000000Z",
"suspension_reason": null,
"created_at": "2026-09-30T02:03:09.474123Z",
"updated_at": "2026-10-24T22:00:00.000000Z"
}
}{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
}
}
]
}{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
}
}
]
}{
"errors": [
{
"code": "10001",
"title": "Not Found",
"detail": "The requested dedicated IP was not found"
}
]
}{
"errors": [
{
"code": "40901",
"title": "Conflict",
"detail": "cannot release the last IP in a pool without force: true and drain: true (in-flight messages need a routable source)"
}
]
}{
"errors": [
{
"code": "10015",
"title": "Validation Failed",
"detail": "cannot transition dedicated IP from released to released",
"source": {
"pointer": "/data/attributes/status"
}
}
]
}{
"errors": [
{
"code": "10031",
"title": "Service Unavailable",
"detail": "Dedicated IP Billing is unavailable — the purchase was not allocated; retry shortly"
}
]
}Authorizations
Query Parameters
Body
application/json
Optional release options. The same fields are accepted as query parameters.
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.email.dedicatedIps.delete('id');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.email.dedicated_ips.delete(
id="id",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Email.DedicatedIps.Delete(
context.TODO(),
"id",
telnyx.EmailDedicatedIPDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.email.dedicatedIps.DedicatedIpDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
DedicatedIpDeleteParams params = DedicatedIpDeleteParams.builder()
.build();
client.email().dedicatedIps().delete("id", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
dedicated_ip_show = telnyx.email.dedicated_ips.delete("id")
puts(dedicated_ip_show)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$dedicated_ip_show = $client->email->dedicatedIps->delete(
'id',
);
var_dump($dedicated_ip_show);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx email:dedicated-ips delete \
--api-key 'My API Key' \
--id idcurl --request DELETE \
--url https://api.telnyx.com/v2/email/dedicated_ips/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "No longer needed"
}
'{
"data": {
"id": "6a7f9a30-1234-4b5c-8d9e-0f1a2b3c4d5e",
"record_type": "dedicated_ip",
"ip_address": "64.16.239.170",
"ip_version": "ipv4",
"pool_id": null,
"region": "ewr-nj1",
"status": "released",
"warmup": {
"started_at": null,
"progress": 0,
"daily_cap": null,
"paused": false,
"paused_at": null,
"today": null
},
"billing": {
"status": "stopping",
"charged": true
},
"provisioning_status": "not_applicable",
"provisioning": {
"dns_status": "not_applicable",
"ptr_request_state": "confirmed",
"ptr_request_pr_url": null,
"checklist": {
"ptr_requested": true,
"ptr_authored": false,
"ptr_merged": true,
"forward_confirmed": true
}
},
"ptr_hostname": "mta-64-16-239-170.msgtelnyx.com",
"dns_confirmed_at": "2026-10-14T20:12:41.552310Z",
"quarantine_until": "2026-11-23T22:00:00.000000Z",
"released_at": "2026-10-24T22:00:00.000000Z",
"suspension_reason": null,
"created_at": "2026-09-30T02:03:09.474123Z",
"updated_at": "2026-10-24T22:00:00.000000Z"
}
}{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
}
}
]
}{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
}
}
]
}{
"errors": [
{
"code": "10001",
"title": "Not Found",
"detail": "The requested dedicated IP was not found"
}
]
}{
"errors": [
{
"code": "40901",
"title": "Conflict",
"detail": "cannot release the last IP in a pool without force: true and drain: true (in-flight messages need a routable source)"
}
]
}{
"errors": [
{
"code": "10015",
"title": "Validation Failed",
"detail": "cannot transition dedicated IP from released to released",
"source": {
"pointer": "/data/attributes/status"
}
}
]
}{
"errors": [
{
"code": "10031",
"title": "Service Unavailable",
"detail": "Dedicated IP Billing is unavailable — the purchase was not allocated; retry shortly"
}
]
}