For a couple of days I'm looking for a way to remove empty repositories from my private Docker registry.
I don't succeed at all and see dozens of 3rd party scripts that overcome some issues people have with the default garbage collection.
My idea is to have a cron running with a script that just removes repositories where no images are in anymore. As the API doesn't seem to support that I'm looking for something else where people might already have found a solution to do so.