How to Destroy a NAT Gatewaypublic
Validated on 28 Aug 2025 • Last edited on 28 Aug 2025
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. You can link VPC networks to each other using VPC peering connections.
Destroying a NAT gateway permanently and irreversibly deletes the gateway and terminates its connections.
Destroy a NAT Gateway Using the Command Line
Destroy a NAT Gateway Using the API
Destroy a NAT Gateway Using the Control Panel
To destroy a NAT gateway, click Networking in the left menu, then click the VPC tab. Click on the VPC that contains the NAT gateway you want to destroy, then click its NAT Gateway tab.
In the listing of the VPC’s NAT gateways, click the … menu of the NAT Gateway you want to destroy, then click Destroy.
In the confirmation window, type the name of the NAT gateway to confirm, then click Destroy NAT Gateway to permanently destroy the NAT gateway and immediately terminate its connections.
You can also destroy a NAT gateway from its Settings tab.