Skip to content

Instantly share code, notes, and snippets.

@danihodovic
Created May 2, 2019 10:37
Show Gist options
  • Save danihodovic/06477970feeeabbdb3a97edde30582d6 to your computer and use it in GitHub Desktop.
Save danihodovic/06477970feeeabbdb3a97edde30582d6 to your computer and use it in GitHub Desktop.
Delete all gitlab runners
import gitlab
import os
gitlab_client = gitlab.Gitlab(
url='https://gitlab.com',
private_token=os.getenv("GITLAB_API_PRIVATE_TOKEN"),
api_version=4
)
for runner in gitlab_client.runners.list():
runner.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment