Skip to content

ankitcharolia/gitlab-artifacts-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Version Build CI CodeQL Go Report Card License Releases

Gitlab Artifacts Cleaner

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.

Installation

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

Usage

$ 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.

Support

Feel free to create an Issue/Pull Request if you find any bug with gitlab-artifacts-cleaner