git checkout main; git branch -D @(git branch | select-string -NotMatch "main" | Foreach {$_.Line.Trim()})