Deleting Capacity Reservations
Permanently delete a capacity reservation.
- Navigate to the Capacity Reservations list page. If you need help finding the list page, see Listing Capacity Reservations.
- Select the capacity reservation you want to delete.
- Either terminate (delete) all the instances in the capacity reservation, or move the instances out of the capacity configuration.
- Select Delete, and then confirm when prompted.
To track the progress of the operation and troubleshoot errors that might occur when deleting an instance pool, use the associated work request.
Use the capacity reservations delete command and required parameters to delete capacity reservations:
oci compute capacity-reservation delete --from-json <file://path/to/file.json>
<file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.
For a complete list of flags and variable options for the Compute service CLI commands, see the command line reference for Compute.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
Use this API operation to delete a capacity reservation:
- DeleteComputeCapacityReservation
Note
To delete a capacity reservation, you must first terminate all the instances in the capacity reservation or move the instances out of the capacity configuration.
- DeleteComputeCapacityReservation