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.

    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN that you're interested in.
    3. Under Resources, click NAT Gateways.
    4. For the NAT gateway that you want to delete, click the Actions menu (Actions Menu), and then click Terminate.
    5. To confirm, click Terminate.
  • Use the network internet-gateway delete command and required parameters to delete a NAT gateway:

    oci network internet-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.