Validated on 15 Nov 2019 • Last edited on 27 Sep 2023
ip
A DigitalOcean Reserved IP address is a publicly-accessible static IP address that you can assign to a Droplet and then reassign to another Droplet later, as needed. You can implement a failover mechanism with reserved IPs to build a high availability infrastructure.
Note
The Floating IP service is now called Reserved IPs. The Reserved IP service retains the same functionality as the prior service.
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.