Deleting an LPG

Delete a local peering gateway (LPG) from a virtual cloud network (VCN) in Networking.

Before you delete an LPG, delete all route rules in the VCN that specify the LPG as the target. Deleting those rules stops the routing in the VCN to the LPG. However, the LPG's state could still be PEERED if the other LPG still exists. Whenever an LPG is deleted, the LPG at the other side of the peering changes to the REVOKED state.

Note

After deleting an LPG, ensure that the other LPG in the peering (in the other VCN) is removed. That LPG can't be peered again. See Repurposing an LPG fails for more detail.

    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the VCN that contains the LPG to delete.
    3. Under Resources, click Local Peering Gateways.
    4. For the LPG that you want to delete, click the Actions menu (Actions Menu), and then select Terminate.
    5. Confirm when prompted.
  • Use the network local-peering-gateway delete command and required parameters to delete an LPG:

    oci network local-peering-gateway delete --local-peering-gateway-id ocid  ... [OPTIONS]

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

  • Run the DeleteLocalPeeringGateway operation to delete an LPG.