Easy bash script to clean all project from gitlab-registry
# Debian:
apt install jq curl
# Centos:
yum install jq curl
gitlab-registry-clean.sh ${TOKEN} ${URL PROJECT} ${Save the last N records}
gitlab-registry-clean.sh sdflkj1l-Vd-VklkdaFf gitlab.example.com 10
gitlab-ctl registry-garbage-collect -m
https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html