Exclude list of tags from deletion when cleaning the registry

Hello,

I have a script which loops through all projects and their repository id and deletes tags by various criteria such as time or the minimum number of tags. I have a list of images/tags (the tag strings would be enough) that I’d like to exclude. Unfortunately I’m only seeing name_regex_keep as the only documentated solution in gitlab api. And given that I have hundreds of images, I couldn’t simply include them in the http api request.
Any suggestions as to how I could go about this problem?

Thanks!

Never mind. I’ve switched to python-gitlab. Everything is suddenly much clearer :slight_smile: