Skip to content

Instantly share code, notes, and snippets.

View dikiaap's full-sized avatar

Diki Ananta dikiaap

View GitHub Profile
@dikiaap
dikiaap / erase_all_jobs.sh
Created March 6, 2019 01:47 — forked from btgoodwin/erase_all_jobs.sh
GitLab EE/CE V4 API: Erase all jobs for project
#!/usr/bin/env bash
# Author: Thomas Goodwin
# Company: Geon Technologies
# Purpose: Erase all jobs for a given GitLab project.
# Arguments:
# 1) URL of gitlab project (https://some.server.com/group/[group/]project)
# 2) private token (personal access token, impersonation token, etc.)
#
# Requirements: bash > 4.0, jq