HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
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
    }