delete-subgroup.py 268 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import requests
import os
import sys


API_ENDPOINT = os.environ['GITLAB_API_ENDPOINT']
API_TOKEN = os.environ['GILATB_API_TOKEN']

data = {
    "private_token": API_TOKEN,
}

r = requests.delete(url=API_ENDPOINT + "/groups/" + sys.argv[1], data=data)

print (r.text)