How to Deprovision a BYOIP Prefixpublic

Validated on 25 Jun 2025 • Last edited on 25 Jun 2025

DigitalOcean Reserved IPs are publicly-accessible static IPv4 and IPv6 addresses. Assign and reassign reserved IP addresses to Droplets as needed, or implement an automated failover mechanism with reserved IPs to build a high availability infrastructure.

During the public preview, Bring Your Own IP (BYOIP) prefixes must be deprovisioned using doctl or the DigitalOcean API.

Note
A BYOIP prefix cannot be deprovisioned while it has addresses assigned to Droplets. Unassign all addresses before deprovisioning.

Deprovision a BYOIP Prefix Using the CLI

To deprovision a prefix, use the doctl compute byoip-prefix delete command with the ID of your BYOIP prefix. To find the ID of your prefix, use doctl compute byoip-prefix list to list all of your prefixes and their IDs.

doctl compute byoip-prefix delete <your_prefix_id>

Replace <your_prefix_id> with the ID of the prefix you are deprovisioning.

The command prompts for confirmation before deprovisioning the prefix.

Deprovision a BYOIP Prefix Using the API

Send a DELETE request to the byoip_prefixes/<your_prefix_id> endpoint. To find the ID of your prefix send a GET request to the /v2/byoip_prefixes endpoint to list all o fyour prefixes and their IDs.

curl -X DELETE \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  "https://api.digitalocean.com/v2/byoip_prefixes/<your_prefix_id>"

Replace <your_prefix_id> with the ID of the prefix you are deprovisioning.

The API sends an empty 202 response on success.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.