https://github.com/ankitcharolia/gitlab-artifacts-cleaner
A Golang tool to cleanup Gitlab Artifacts
https://github.com/ankitcharolia/gitlab-artifacts-cleaner
artifacts-cleanup artifacts-deletion cleaup developer developer-tools gitlab gitlab-artifacts gitlab-artifacts-cleaner golang golang-application golang-package golang-tools
Last synced: 6 months ago
JSON representation
A Golang tool to cleanup Gitlab Artifacts
- Host: GitHub
- URL: https://github.com/ankitcharolia/gitlab-artifacts-cleaner
- Owner: ankitcharolia
- License: mit
- Created: 2023-08-29T20:03:11.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-13T04:00:37.000Z (11 months ago)
- Last Synced: 2025-08-13T06:16:09.136Z (11 months ago)
- Topics: artifacts-cleanup, artifacts-deletion, cleaup, developer, developer-tools, gitlab, gitlab-artifacts, gitlab-artifacts-cleaner, golang, golang-application, golang-package, golang-tools
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ankitcharolia/gitlab-artifacts-cleaner/releases/latest)


[](https://goreportcard.com/report/github.com/ankitcharolia/gitlab-artifacts-cleaner)
[](https://github.com/ankitcharolia/gitlab-artifacts-cleaner/blob/master/LICENSE)
[]()
# 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**
```shell
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**
```shell
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
```shell
$ gitlab-artifacts-cleaner --help
Usage: gitlab-artifacts-cleaner [flags] []
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
```
```bash
gitlab-artifacts-cleaner --server https://gitlab.com --token --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`