View a markdown version of this page

delete_image - AWS ParallelCluster

This documentation references AWS ParallelCluster. For running HPC and AI workloads, we recommend AWS Parallel Computing Service (AWS PCS), our managed Slurm service that lets you focus on running your workloads rather than managing infrastructure.

delete_image

delete_image(image_id, region, force)

Delete an image in a given Region.

Parameters:
image_id (required)

The image ID.

region

The image AWS Region.

force

If set to True, AWS ParallelCluster forces deletion if instances are using the AMI or if the AMI is shared. The default is False.