Deleting a DRG Attachment

Detach a Dynamic Routing Gateway (DRG) from a resource in Oracle Cloud Infrastructure.

You detach a DRG from a Virtual Cloud Network (VCN) by deleting the DrgAttachment resource. This doesn't require deleting the VCN.

When you delete a virtual circuit, IPSec tunnel, or remote peering connection (RPC) resource, the corresponding attachment to the DRG is automatically deleted. These resources can't be detached from a DRG without deleting the resource itself.

    1. On the Dynamic Routing Gateways list page, select the DRG that you want to work with. If you need help finding the list page or the DRG, see Listing DRGs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Attachments tab, go to the section that corresponds to the attachment's type.
      • Under Resources, select an option corresponding to the attachment's type.

      You're only able to delete attachments with the DRG attachment types of:

      • VCN attachments
      • Cross-tenancy attachments
    3. From the Actions menu Actions Menu for the DRG attachment, select Delete.
    4. When prompted, confirm the deletion.
  • Use the network drg-attachment delete command and required parameters to delete a DRG attachment:

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

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

  • Run the DeleteDrgAttachment operation to delete a DRG attachment.