Delete compartment

0

1. For most resources, you can use the tenancy explorer to help you locate them. See Resources Supported by the Tenancy Explorer for the list of supported resources.

Open the navigation menu and click Governance & Administration. Under Tenancy Management, click Tenancy Explorer. The tenancy explorer opens with a view of the root compartment. Select the compartment you want to explore from the compartment picker on the left side of the Console. After you select a compartment, the resources that you have permission to view are displayed. The Name and Description of the compartment you are viewing are displayed at the top of the page.

2. Verify that there are no policies in the compartment (polices are not included in Search results).
To find policies in a compartment

a. Open the navigation menu and click Identity & Security. Under Identity, click Policies.

b. From the compartments list on the left, select the compartment you want to delete.

3. Policies attached to the compartment are displayed.
If you can’t locate any resources in the compartment, check with your Administrator; you might not have permission to view all resources.

——————————
OR

From OCI Console UI, navigate to Observability and Management -> Logging Analytics -> Administration
Click on entities.

Do you see the loganalytics entities you have listed ?

OR

Using OCI Cloud Shell
Get Namespace of your tenancy:
oci log-analytics namespace list -c <root_tenancy_ocid>

OR

Using CLI
oci log-analytics entity list –compartment-id <compartment_ocid> –namespace <namespace>

You can find the OCI CLI command and its options for ‘oci log-analytics entity delete’ in below document.

https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.44.2/oci_cli_docs/cmdref/log-analytics/entity/delete.html

Share.

About Author

Leave A Reply