CmdID / az / az acr / az acr config
az acr config retention
Manage retention policy for Azure Container Registries. Azure CLI reference
2 commands 4 options Its page in the Azure CLI reference
Commands
Options
--daysThe number of days to retain an untagged manifest after which it gets purged (Range: 0 to 365).--registry, -r--statusIndicates whether retention policy is enabled.--typeThe type of retention policy.