Gitlab Artifacts Cleaner is a command-line tool to cleanup Gitlab stored Artifacts
NOTE: If you need to wipe out a Gitlab project's artifacts, this is the tool for you. It will delete all the artifacts of the project, but It will NOT delete the project.
Releases: https://github.com/ankitcharolia/gitlab-artifacts-cleaner/releases
LINUX
wget -O - https://github.com/ankitcharolia/gitlab-artifacts-cleaner/releases/latest/download/gitlab-artifacts-cleaner-linux-amd64.tar.gz | sudo tar -xz -C /usr/local/bin
MAC
wget -O - https://github.com/ankitcharolia/gitlab-artifacts-cleaner/releases/latest/download/gitlab-artifacts-cleaner-darwin-amd64.tar.gz | sudo tar -xz -C /usr/local/bin
$ gitlab-artifacts-cleaner --help
Usage: gitlab-artifacts-cleaner [flags] [<options>]
Flags:
--help gitlab-artifacts-cleaner Help Command
--project-id GitLab Project ID
--server GitLab Server URL (e.g., https://gitlab.com)
--token GitLab Personal Access Token
gitlab-artifacts-cleaner --server https://gitlab.com --token <token> --project_id <project_id>
NOTE: You must have at least the Maintainer role for the project.
Feel free to create an Issue/Pull Request if you find any bug with gitlab-artifacts-cleaner