Learn R Programming

paws.compute (version 0.1.12)

batch_delete_compute_environment: Deletes an AWS Batch compute environment

Description

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.

Usage

batch_delete_compute_environment(computeEnvironment)

Value

An empty list.

Arguments

computeEnvironment

[required] The name or Amazon Resource Name (ARN) of the compute environment to delete.

Request syntax

svc$delete_compute_environment(
  computeEnvironment = "string"
)

Examples

Run this code
if (FALSE) {
# This example deletes the P2OnDemand compute environment.
svc$delete_compute_environment(
  computeEnvironment = "P2OnDemand"
)
}

Run the code above in your browser using DataLab