deleteImage - 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).

deleteImage

Initiate deleting the custom Amazon ParallelCluster image.

Request syntax

DELETE /v3/images/custom/{imageId} { "force": boolean, "region": "string" }

Request body

imageId

The ID of the image.

Type: string

Required: Yes

force

If set to true, force the AMI delete. Use this parameter if there are instances using the AMI or if the AMI is shared. The default is false.

Type: boolean

Required: No

region

The Amazon Web Services Region that the image was created in.

Type: string

Required: No

Response syntax

{ "image": { "imageId": "string", "ec2AmiInfo": { "amiId": "string" }, "region": "string", "version": "string", "cloudformationStackArn": "string", "imageBuildStatus": "DELETE_IN_PROGRESS", "cloudformationStackStatus": "DELETE_IN_PROGRESS" } }

Response body

image
cloudformationStackArn

The Amazon resource name (ARN) of the main CloudFormation stack.

Type: string

cloudformationStackStatus

The CloudFormation stack status.

Type: string

Valid values: CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | ROLLBACK_IN_PROGRESS | ROLLBACK_FAILED | ROLLBACK_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | UPDATE_IN_PROGRESS | UPDATE_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_COMPLETE | UPDATE_ROLLBACK_IN_PROGRESS | UPDATE_ROLLBACK_FAILED | UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_ROLLBACK_COMPLETE

ec2AmiInfo
amiId

The EC2 AMI ID.

Type: string

imageBuildStatus

The image build status.

Type: string

Valid values: BUILD_IN_PROGRESS | BUILD_FAILED | BUILD_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE

imageId

The ID of the image.

Type: string

region

The Amazon Web Services Region that the image is created in.

Type: string

version

The Amazon ParallelCluster version that's used to build the image.

Type: string

Example

Python

Request

$ delete_image(custom-image-id)

200 Response

{ 'image': { 'image_build_status': 'DELETE_IN_PROGRESS', 'image_id': 'custom-image-id', 'region': 'us-east-1', 'version': '3.2.1' } }