批量删除gitlab仓库

curl  -H "PRIVATE-TOKEN: private_token" "https://gitlab.com/api/v4/users/:yourname/projects" | jq .[].name | grep cto- | sed -e 's/"//g' | awk '{print "https://gitlab.com/api/v4/projects/:yourname%2F"$0}' | xargs -t curl  -X DELETE   -H "PRIVATE-TOKEN: private_token"  
posted @ 2021-08-22 19:17  阿牛  阅读(254)  评论(0编辑  收藏  举报