You probably want git-dmb (dmb = delete merged branches) for a safe and more comprehensive way of dealing with this.
Or git-old-branches/git-recent from git-plus
https://github.com/tkrajina/git-plus
Disclaimer, I'm the author ^^
Or git-old-branches/git-recent from git-plus
https://github.com/tkrajina/git-plus
Disclaimer, I'm the author ^^