Skip to content

Deletes an Image Builder image resource

Description

Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.

The request fails with ResourceDependencyException if the image is shared with other accounts, or if other resources depend on it. It also fails while the image build is still running. Cancel an in-progress build with cancel_image_creation before you delete the image.

Usage

imagebuilder_delete_image(imageBuildVersionArn)

Arguments

  • imageBuildVersionArn

    [required] The Amazon Resource Name (ARN) of the Image Builder image resource to delete.

Value

A list with the following syntax:

list(
  requestId = "string",
  imageBuildVersionArn = "string"
)

Request syntax

svc$delete_image(
  imageBuildVersionArn = "string"
)