Validated on 28 Oct 2019 • Last edited on 8 Jul 2024
DigitalOcean fully manages Regional Load Balancers and Global Load Balancers, ensuring they are highly available load balancing services. Load balancers distribute traffic to groups of Droplets in specific regions or across different regions, which prevents the health of a backend service from depending on the health of a single server or a single region.
You can destroy a load balancer if you no longer need it. This is a permanent, irreversible action.
Note
Destroying a load balancer does not destroy the Droplets that were associated with it. You can destroy these Droplets separately.
Delete a Load Balancer Using Automation
How to Delete a Load Balancer Using the DigitalOcean CLI
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.load_balancers.delete(lb_id="afda3ad")
Destroy a Load Balancer Using the Control Panel
From the control panel, click Networking, then click Load Balancers to go to the load balancer overview page. Click on the name of the load balancer you want to destroy to go to its index page, then click Settings.
In the Destroy section, click the Destroy button. In the Destroy Load Balancer window that opens, click Confirm to permanently destroy the load balancer.