Validated on 15 Nov 2019 • Last edited on 23 May 2024
ip
DigitalOcean Reserved IP addresses are a publicly-accessible static IP addresses. Assign and reassign reserved IP addresses to Droplets as needed, or implement a failover mechanism with reserved IPs to build a high availability infrastructure.
Deleting a reserved IP unassigns it and permanently removes it from your account.
Delete an Assigned IP Using Automation
How to delete a Reserved IP using the DigitalOcean CLI
To delete a Reserved IP via the command-line, follow these steps:
Use the token to grant doctl access to your
DigitalOcean account.
doctl auth init
Finally, delete a Reserved IP with
doctl compute reserved-ip delete. The basic usage looks
like this, but you'll want to read the usage docs for more details:
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.reserved_ips.delete(reserved_ip="45.55.96.47")
Delete an Assigned IP Using the Control Panel
To delete a reserved IP from the control panel, click Networking in the main navigation, then click the Reserved IPs tab. Open the More menu of the reserved IP you want to delete, then click Delete.
In the confirmation window, click Delete Reserved IP to perform the deletion.