Created
May 2, 2019 10:37
-
-
Save danihodovic/06477970feeeabbdb3a97edde30582d6 to your computer and use it in GitHub Desktop.
Delete all gitlab runners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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