Как удалить все ветви в GIT Local

git branch | grep -v "main" | xargs git branch -D
Healthy Hyena