Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 447 Bytes

github.md

File metadata and controls

13 lines (9 loc) · 447 Bytes

Clear your repo from left-over keys

list keys

curl -s -H "Authorization: token $gh_token" https://api.github.com/repos/${gh_user}/${repo}/keys | jq .[].id

delete all keys

for key in `curl -s -H "Authorization: token $gh_token" https://api.github.com/repos/${gh_user}/${repo}/keys | jq .[].id`; do curl -s -H "Authorization: token $gh_token" -X DELETE https://api.github.com/repos/${gh_user}/${repo}/keys/${key} ; done