

This documentation references AWS ParallelCluster. For running HPC and AI workloads, we recommend [AWS Parallel Computing Service (AWS PCS)](https://aws.amazon.com/pcs/), our managed Slurm service that lets you focus on running your workloads rather than managing infrastructure.

# `delete_image`

```python
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`.