Skip to content

Instantly share code, notes, and snippets.

@qoomon
Created July 29, 2022 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qoomon/c1cd940e453e2b12b96d862c0c897abb to your computer and use it in GitHub Desktop.
Save qoomon/c1cd940e453e2b12b96d862c0c897abb to your computer and use it in GitHub Desktop.
GitHub Bulk Operations
# list repos
# gh repo list $owner --json nameWithOwner -q '.[].nameWithOwner'
repos=(
example/example
)
for repo in "${repos[@]}"
do
echo $repo
# gh repo archive --confirm $repo
# gh repo delete --confirm $repo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment