HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/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
    }