Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 599 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 599 Bytes

Scripts to clean up Gitlab deploy keys

Install dependencies:

pip install -r requirements.txt

In the src directory copy env-example to .env` file, and edit to add Gitlab URL and API access token:

cp env-example .env

Read deploy keys

python list_deploy_keys.py

Add numeric IDs of deploy keys which need to be delete to a file name deploy_keys.txt, each deploy key ID on a new line.

Delete deploy keys

python delete_deploy_keys.py

This script list the deploy keys which are about to be deleted and ask for confirmation before deleting.