capabilities.work

Teardown VCN Network

A 4-step recipe with Oracle Cloud Infrastructure. We can help you get access.

Recipe · 4 steps

Teardown VCN Network

Delete a VCN's subnet, then delete the VCN.

  1. Confirm the VCN exists before deleting dependent resources.
  2. List the subnets that belong to the VCN.
  3. Delete the first subnet returned for the VCN.
  4. Delete the now-empty VCN.
What you'll need to have ready
  • compartmentId: The OCID of the compartment containing the VCN.
  • vcnId: The OCID of the VCN to tear down.
For your developer

Arazzo workflow oracle-cloud:teardown-vcn-network, 4 operations: getVcn → listSubnets → deleteSubnet → deleteVcn. Specs on APIs.io.