Hello @Tanul ,
Welcome to Microsoft QnA.
I had a quick word with the AKS product team on this query of yours.
We have a preview feature available just for this ask, check it out here - https://learn.microsoft.com/en-us/azure/aks/image-cleaner?tabs=azure-cli
This feature has been specifically designed to address this pain point.
Although it is in preview, it should work if you follow the steps, else if you want to wait for it to be GA, you need to manually clean up the images until ImageCleaner becomes GA, or implement the Open Source project yourself: https://github.com/Azure/eraser
However, please note that the open source project will not be supported by AKS and only via the project's GitHub issues page.
Thank you. Let me know if you have any additional questions!
-------------
If you find the above information useful, please "Accept as Answer" and "Upvote".