Deleting a NAT Gateway
Delete a NAT gateway from a Virtual Cloud Network (VCN) in Networking.
To delete a NAT gateway, its traffic doesn't have to be blocked, but there must not be a route table that lists it as a target.
This operation is asynchronous. The NAT gateway's lifecycleState state will change to TERMINATING temporarily until the NAT gateway is completely removed.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
- Click the name of the VCN that you're interested in.
- Under Resources, click NAT Gateways.
- For the NAT gateway that you want to delete, click the , and then click Terminate.
- To confirm, click Terminate.
Use the network nat-gateway delete command and required parameters to delete a NAT gateway:
oci network nat-gateway delete --nat-gateway-id nat-ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the DeleteNatGateway operation to delete a NAT gateway.