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. In the Console, confirm you're viewing the compartment that contains the VCN with the service gateway that you want to delete. For information about compartments and access control, see Access Control.
    2. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    3. Click the name of the VCN with the service gateway that you want to delete.
    4. Under Resources, click Service Gateways.
    5. For the service gateway you want to delete, click the Actions menu (Actions Menu), and then select Terminate.
    6. Confirm when prompted.
  • 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.