Deletes an AWS Batch compute environment.
Before you can delete a compute environment, you must set its state to
DISABLED
with the
update_compute_environment
API
operation and disassociate it from any job queues with the
update_job_queue
API operation. Compute
environments that use AWS Fargate resources must terminate all active
jobs on that compute environment before deleting the compute
environment. If this isn't done, the compute environment will end up in
an invalid state.