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
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.
python delete_deploy_keys.py
This script list the deploy keys which are about to be deleted and ask for confirmation before deleting.