Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
Getting Error trying to delete the VCN

Hi Everyone
I have an Oracle Cloud Free Account, I am trying to delete a Virtual Cloud Network from a Demo Compartment,
Getting the following Error:
Private Subnet-OCI_HOL_VCN
Compartment
Demo
The VCN cannot be terminated because there are associated resources in one or more compartments that you do not have access to. Learn more: Subnet or VCN Deletion.
(Conflict - The Subnet ocid1.subnet.oc1.ca-toronto-1.aaaaaaaalwxftevmnupfxj3ev2irv3l3wygiv6k3jhkreq4o4nqjbksqzqgq references the VNIC ocid1.vnic.oc1.ca-toronto-1.ab2g6ljruhomvqde6rz3zgb24zass2jvcuubpc6gg4sgjsakswhdhvqfxcyq. You must remove the reference to proceed with this operation.)
I tried to find out the resource, which is using Private Subnet-OCI_HOL_VCN but did not find any.
Appreciate your help in Advance. Thanks
Answers
-
Use oracle CLI to find the resource:
Command: oci network vnic get --vnic-id ocid1.vnic.oc1.ca-toronto-1.ab2g6ljruhomvqde6rz3zgb24zass2jvcuubpc6gg4sgjsakswhdhvqfxcyq
Also read the docs to know how to idenfity the resource: https://docs.oracle.com/en-us/iaas/Content/Network/Troubleshoot/subnetdelete.htm