A Virtual Private Cloud (VPC) is a private network interface for collections of DigitalOcean resources. VPC networks are inaccessible from the public internet and other VPC networks, and traffic on them doesn’t count against bandwidth usage.
Deleting a VPC network permanently and irreversibly destroys the network.
You can only destroy a VPC network that has no resources in it. You can either destroy the resources or safely migrate Droplets, volumes, and databases out of a VPC network first.
Delete a VPC Network Using Automation
How to Delete a VPC Network Using the DigitalOcean CLI
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.vpcs.delete(vpc_id="e0fe0f4d")
Delete a VPC Network Using the Control Panel
To destroy a VPC network, click Networking in the main menu, then click the VPC tab. In the VPC Networks tab, click the More menu of the VPC network you want to destroy and select Edit Settings.
In the VPC network’s Settings tab, click Destroy VPC. In the confirmation window, click Confirm to destroy the VPC network.