Hi Subin Sabu,
Thank you for reaching us and sharing further information.
As per your requirement, we would like to inform you that the SKU is standard and does not have a retention policy. To delete images in the standard SKU, this must be done manually. For the premium SKU, you need to untag the images using the az acr command, as per your response, and then apply the retention policy to delete the untagged images. Below is the command for untagging the image.
az acr repository untag --name <ACR_NAME> --image <IMAGE_NAME:TAG>
Please find the below document for more information: https://learn.microsoft.com/en-us/cli/azure/acr/repository?view=azure-cli-latest#az-acr-repository-untag
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-delete#delete-by-tag
If the information is helpful, please consider by clicking the "Upvote" on the post.