这两天打算清理掉github上边很多以前fork的仓库,在手动删除了几个之后,觉得很烦,就搜一下怎么批量删除。网上有不少方法
1.在github settings token中,获取token,这个token要勾选delete repos权限
2.Linux: 运行命令 curl -XDELETE -H ‘Authorization: token your-new-token‘ "https://api.github.com/repos/author/reposname" 删除github仓库
ps: 你也可以使用shell脚本,定义一个要删除的目录,进行批量删除
原文:https://www.cnblogs.com/august-fz/p/14420416.html