title: Azure Devops - Docker Repository Cleanup on Run Deletion
body: <p>Our organization currently uses TeamCity for CI and I am assessing the feasibility of changing over to Azure DevOps.</p>
  <p>So far I've been able to figure out equivalent functionality for most elements, but I'm currently stuck on one particular feature: <a href="https://www.jetbrains.com/help/teamcity/docker-support.html#Docker+Images+Clean-up" rel="nofollow noreferrer">https://www.jetbrains.com/help/teamcity/docker-support.html#Docker+Images+Clean-up</a></p>
  <p>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.</p>
  <p>Thoughts?</p>