View a markdown version of this page

delete_image - Amazon ParallelCluster
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This documentation references Amazon ParallelCluster. For running HPC and AI workloads, we recommend Amazon Parallel Computing Service (Amazon 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 Amazon Web Services Region.

force

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