Skip to content

Instantly share code, notes, and snippets.

@naqushab
Last active January 16, 2018 13:22
Show Gist options
  • Save naqushab/da0cf017ef33dbb403c961116b23e284 to your computer and use it in GitHub Desktop.
Save naqushab/da0cf017ef33dbb403c961116b23e284 to your computer and use it in GitHub Desktop.
Delete Multiple Repos (Powershell)
get-content repolist.txt | ForEach-Object { Invoke-WebRequest -Uri https://api.github.com/repos/$_ -Method "DELETE" -Headers @{"Authorization"="token UR_TOKEN"} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment