capabilities.work

Decommission Repository

A 3-step recipe with Amazon ECR. We can help you get access.

Recipe · 3 steps

Decommission Repository

List a repository's images then delete it, forcing deletion when images remain.

  1. List the image IDs the repository contains to decide whether deletion must be forced.
  2. Delete the repository with the force option so its contained images are removed as part of the deletion.
  3. Delete the repository directly when it holds no images, leaving the force flag off.
What you'll need to have ready
  • repositoryName: The name of the repository to decommission.
  • registryId: The AWS account ID associated with the registry.
For your developer

Arazzo workflow amazon-ecr:decommission-repository, 3 operations: ListImages → DeleteRepository → DeleteRepository. Specs on APIs.io.