Before you can delete a compute environment, you must set its state to
DISABLED with the UpdateComputeEnvironment API operation and
disassociate it from any job queues with the UpdateJobQueue API
operation.
# NOT RUN {# This example deletes the P2OnDemand compute environment.# }# NOT RUN {svc$delete_compute_environment(
computeEnvironment = "P2OnDemand")
# }# NOT RUN {# }