I have ran
git fetch upstream +refs/pull/*:refs/remotes/upstream/pr/*
git fetch origin +refs/pull/*:refs/remotes/origin/pr/*
And I ended up with several hundreds of branches - 4 for each pull request (head, merge, and both from origin and upstream.
How can I get rid of these branches locally, in two steps?
I have tried
git branch -D refs/remotes/origin/pr/*
but that says "not found".