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.
- 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.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
- Click the name of the VCN with the service gateway that you want to delete.
- Under Resources, click Service Gateways.
- For the service gateway you want to delete, click the , and then select Terminate.
- 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.