- Goto https://github.com/orgs/YOUR_ORG/people
- Export json file
- Run this commend
ORG=<YOUR_ORG>
cat export-YOUR_ORG-123456789.json | jq -r '.[].login' | while read username; do
gh api -X DELETE "/orgs/$ORG/members/$username"
doneORG=<YOUR_ORG>
cat export-YOUR_ORG-123456789.json | jq -r '.[].login' | while read username; do
gh api -X DELETE "/orgs/$ORG/members/$username"
done