{"id":18605953,"url":"https://github.com/axllent/gitlab-pipe-cleaner","last_synced_at":"2025-10-13T15:11:36.263Z","repository":{"id":57610683,"uuid":"192059209","full_name":"axllent/gitlab-pipe-cleaner","owner":"axllent","description":"A command line tool that uses the Gitlab API to clean (prune) your servers CI pipelines and jobs, including build logs \u0026 artifacts","archived":false,"fork":false,"pushed_at":"2021-03-12T22:40:13.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-05-16T19:47:47.622Z","etag":null,"topics":["gitlab","gitlab-api","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axllent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-15T09:12:38.000Z","updated_at":"2021-03-12T22:40:15.000Z","dependencies_parsed_at":"2022-08-27T11:11:51.229Z","dependency_job_id":null,"html_url":"https://github.com/axllent/gitlab-pipe-cleaner","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/axllent/gitlab-pipe-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fgitlab-pipe-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fgitlab-pipe-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fgitlab-pipe-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fgitlab-pipe-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axllent","download_url":"https://codeload.github.com/axllent/gitlab-pipe-cleaner/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fgitlab-pipe-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015904,"owners_count":26085777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitlab","gitlab-api","go","golang"],"created_at":"2024-11-07T02:23:42.773Z","updated_at":"2025-10-13T15:11:36.244Z","avatar_url":"https://github.com/axllent.png","language":"Go","readme":"# Gitlab Pipe Cleaner \n\nGitlab Pipe Cleaner is a commandline tool that uses the Gitlab API to clean (prune) your servers CI pipelines and jobs, \nincluding all the build logs and artifacts.\n\nIt will run through **all projects** that your API key has access to, deleting pipelines based values on your configuration file ([example](#configuration-example)).\n\nThe tool is written in [Golang](https://golang.org/) so is cross-platform and efficient.\n\n\n## Uage options\n\n```\nUsage of gitlab-pipe-cleaner:\n  -c string\n        Config file (default \"~/.config/gitlab-pipe-cleaner.json\")\n  -delete\n        Delete files (default dry run / report only)\n  -update\n        Update to latest version\n  -v    Show version\n```\n\nRunning gitlab-pipe-cleaner without the `-delete` option will not delete any data, but rather do a dry-run.\n\n\n## Configuration example\n\nCreate a JSON confiburation file (edit with your own values).\n\nThis configuration file can be saved as `~/.config/gitlab-pipe-cleaner.json`, or specified with `gitlab-pipe-cleaner -c \u003cpath-to-your-configuration\u003e`.\n\n```json\n{\n  \"GitlabURL\": \"https://git.example.com/\",\n  \"APIKey\": \"XjsjQr2U1RkHAUpFyfF2\",\n  \"MinPipelines\": 10,\n  \"KeepDays\": 7\n}\n```\n\n- `GitlabURL` - The URL to your Gitlab server\n- `APIKey` - Generate a personal access token with `api` access on `https://git.example.com/profile/personal_access_tokens`\n- `MinPipelines` - The minimum number of latest pipelines to leave per project\n- `KeepDays` - The minimum number of days to leave pipelines (regarless of `MinPipelines`)\n\n\n## Installation\n\nYou can use of the pre-built binaries (see releases), or if you prefer to build it from source `go get github.com/axllent/gitlab-pipe-cleaner`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxllent%2Fgitlab-pipe-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxllent%2Fgitlab-pipe-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxllent%2Fgitlab-pipe-cleaner/lists"}