Deleting an Internet Gateway

Delete an internet gateway from a virtual cloud network (VCN) in Networking.

Prerequisite: The internet gateway doesn't have to be disabled, but there must not be a route table that lists it as a target.

    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 Internet Gateway.
    4. Click the Actions menu (Actions Menu) for the internet gateway, and then select Terminate.
    5. Confirm when prompted.
  • Use the network internet-gateway delete command and required parameters to delete an internet gateway:

    oci network internet-gateway create --ig-id ig-ocid  ... [OPTIONS]
  • Run the DeleteInternetGateway operation to delete an internet gateway.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.