Docker: How to remove all manifests without any tags assigned (with groovy or tasks)?

Thanks a lot, that worked flawlessly (after also rebuilding the browse and search indexes)