Deleting a Service Gateway

Delete a service gateway in a Virtual Cloud Network (VCN) to remove access to the Oracle Services Network (OSN).

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

    1. On the Virtual Cloud Networks list page, select the VCN that contains the gateway that you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Gateways tab, go to the Service Gateways section.
      • Under Resources, select Service Gateways.
    3. From the Actions menu Actions Menu for the gateway you want to delete, select Terminate.
    4. When prompted, confirm the deletion.
  • Use the network service-gateway delete command and required parameters to delete a service gateway:

    oci network service-gateway delete --service-gateway-id sgw-ocid ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeleteServiceGateway operation to delete a service gateway.