Deleting an Instance Pool
When you delete an instance pool, the resources that were created by the pool are permanently deleted, including associated instances, attached boot volumes, and block volumes.
Using the Compute Web UI
-
In the navigation menu, click Compute, and then click Instance Pools.
-
If the instance pool that you want to delete is not listed, use the Compartment drop-down menu above the instance pools list to select the correct compartment.
-
For the instance pool that you want to delete, click the Actions menu, and click the Delete option.
-
On the confirmation dialog, click the Confirm button.
All of the instances in the pool are terminated. Terminated instances are not attached and therefore are not listed in Attached Instances in the Resources box on the pool details page.
Click Work Request(s) in the Resources box to check the status of the instance pool delete. Instances that had been attached to this pool remain visible in the instance list in state Terminated for at least 24 hours, up to 24.5 hours, as described in Terminating an Instance.
Using the OCI CLI
-
Get the OCID of the instance pool that you want to terminate:
oci compute-management instance-pool list
-
Run the instance pool terminate command.
Example:
$ oci compute-management instance-pool terminate \ --instance-pool-id ocid1.instancePool.unique_ID Are you sure you want to delete this resource? [y/N]: y { "etag": "34153f54-0cc9-4e6b-bc02-328166efbb4a", "opc-work-request-id": "ocid1.workrequest.unique_ID" }
Use the
work-requests work-request get
command to check the status of the instance pool terminate. Instances that had been attached to this pool remain visible in instancelist
orget
inlifecycle-state
TERMINATED
for at least 24 hours, up to 24.5 hours, as described in Terminating an Instance.