How to Destroy a NAT Gateway
Validated on 19 Nov 2025 • Last edited on 19 Nov 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.
Similarly, if you unset a NAT gateway as the default gateway without setting another NAT gateway as default, Droplets using the VPC gateway IP for routing lose connectivity. You must either set another NAT gateway as default or reconfigure your Droplets.
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.