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.
- Confirm the VCN exists before deleting dependent resources.
- List the subnets that belong to the VCN.
- Delete the first subnet returned for the VCN.
- 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.