HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ecr/delete-lifecycle-policy.rst
**To delete the lifecycle policy for a repository**

The following ``delete-lifecycle-policy`` example deletes the lifecycle policy for the ``hello-world`` repository. ::

    aws ecr delete-lifecycle-policy \
        --repository-name hello-world

Output::

    {
        "registryId": "012345678910",
        "repositoryName": "hello-world",
        "lifecyclePolicyText": "{\"rules\":[{\"rulePriority\":1,\"description\":\"Remove untagged images.\",\"selection\":{\"tagStatus\":\"untagged\",\"countType\":\"sinceImagePushed\",\"countUnit\":\"days\",\"countNumber\":10},\"action\":{\"type\":\"expire\"}}]}",
        "lastEvaluatedAt": 0.0
    }