Deleting a DRG

Delete a dynamic routing gateway (DRG) in Oracle Cloud Infrastructure.

Prerequisites:

  • The DRG can't be attached to a VCN.
  • The DRG can't be connected to another network by way of Site-to-Site VPN, FastConnect, or remote peering.
  • The DRG can't be listed as a target in a route rule.
  • Tor delete a DRG, follow these steps:

    1. Open the navigation menu and click Networking. Under Customer connectivity, click Dynamic routing gateway.
    2. Under List Scope, select the compartment that contains the DRG you want to delete.
      The page updates to display only the resources in that compartment. If you're not sure which compartment to use, contact an administrator. For more information, see Access Control.
    3. Click the name of the DRG.
    4. Click Terminate.
    5. Confirm when prompted.

    The DRG is in the Terminating state for a short period while it's being deleted. The DRG route tables and DRG route distributions contained in the DRG are also deleted.

  • Use the network drg delete command and required parameters to delete a DRG:

    oci network drg delete --drg-id  ocid  [OPTIONS]

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

  • Run the DeleteDrg operation to delete a DRG.