---
title: "Comment by Apoorv Tyagi on \"How To Delete a Git Branch Locally and Remotely\" | Hashnode"
description: "Wow, the timing of this article couldn&#39;t be any better. I was looking to know about how I can delete all of my old branches. Also, is there a way to delete"
url: "https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c/comment/607973952c39467e4cc32e07"
---

[Discussion](https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c)

Comment [How To Delete a Git Branch Locally and Remotely](https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c)

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Apr 16, 2021](https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c/comment/607973952c39467e4cc32e07)

Wow, the timing of this article couldn't be any better. I was looking to know about how I can delete all of my old branches.

Also, is there a way to delete **all** branches at once? rather than specifying one at a time? 🤔

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Apr 16, 2021](https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c/comment/607973952c39467e4cc32e07#reply-60797af6b1e3c67faa75dca7)

Thank you, [Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)!

I got you; check [How To Delete All Local Git Branches In One Go](https://catalins.tech/how-to-delete-all-local-git-branches-in-one-go)! 🙌

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Apr 16, 2021](https://hashnode.com/posts/how-to-delete-a-git-branch-locally-and-remotely/607952b1e367ef73eed18e2c/comment/607973952c39467e4cc32e07#reply-60798ac7c7bf3703150098a9)

Thanks a lot [Catalin Pit](https://hashnode.com/@Catalinpit).
