Our organization currently uses TeamCity for CI and I am assessing the feasibility of changing over to Azure DevOps.
So far I've been able to figure out equivalent functionality for most elements, but I'm currently stuck on one particular feature: https://www.jetbrains.com/help/teamcity/docker-support.html#Docker+Images+Clean-up
TeamCity allows me to tell a docker repository to remove an image when the build that pushed it is removed - either by retention policies or manually. I can't figure out how to do the equivalent. I've looked for options on the Docker task as well as tried to find a way to run an activity on pipeline run removal but I can't find anything.
Thoughts?