I am trying to find the best way to terminate an oci instance using the oci python library. I know that I can stop an instance with
base_compute.instance_action(instance_id, 'STOP')
However, I do not see a TERMINATE
action in their documentation:https://docs.oracle.com/en-us/iaas/tools/oci-cli/2.21.5/oci_cli_docs/cmdref/compute/instance/action.html for the method. Any help with this would be great.
Please refer this document, it has the Oracle CLI command to terminate the instance.
Command: oci compute instance terminate [OPTIONS]