Removing Github Repos from CLI
March 20, 2024
githubcli
This little snippet leans on the multi-select UX of fzf
. It's a quick way to delete multiple repos from the command line.
Without GitHub CLI🔗
needs:
Tweak this part to customise the query
| jq '.[] | .full_name' \
If you want to only list repos that are a fork and is a template repo:
| jq '.[] | select(.fork==true) | select(.is_template==true) | .full_name' \
More info on githubs documentation on the repo object
With GithubCli🔗
[!NOTE] this requires a personal access token with
delete_repo
scope
~