批量删除github仓库

curl  \
-H "Accept: application/vnd.github.v3+json"  \
-H "Authorization: token your_personal_token"  \
"https://api.github.com/user/repos?per_page=100" \
| jq .[].url \
| grep /cto- \
| xargs -t  \
curl  -X DELETE   \
-H "Accept: application/vnd.github.v3+json"  \
-H "Authorization: token your_personal_token" 
posted @ 2021-08-22 17:50  阿牛  阅读(177)  评论(0编辑  收藏  举报