pcluster delete-image
Starts the deletion of the custom Amazon ParallelCluster image.
pcluster delete-image [-h] --image-idIMAGE_ID[--debug] [--forceFORCE] [--queryQUERY] [--regionREGION]
Named arguments
-h, --help-
Shows the help text for
pcluster delete-image. --image-id, -iIMAGE_ID-
Specifies the id of the image that will be deleted.
--debug-
Enables debug logging.
--forceFORCE-
When
true, forces the deletion in case there are instances using the AMI or if the AMI is shared. (Defaults tofalse.) --queryQUERY-
Specifies the JMESPath query to perform on the output.
--region, -rREGION-
Specifies the Amazon Web Services Region to use. The Amazon Web Services Region must be specified, using the
AWS_DEFAULT_REGIONenvironment variable, theregionsetting in the[default]section of the~/.aws/configfile, or the--regionparameter.
Example using Amazon ParallelCluster version 3.1.4:
$pcluster delete-image --image-idcustom-alinux2-image{ "image": { "imageId": "custom-alinux2-image", "imageBuildStatus": "DELETE_IN_PROGRESS", "region": "us-east-1", "version": "3.1.4" } }