Spend long enough working on a codebase and you’ll eventually end up with a number of branches on your remote that are redundant. This is either because they’re now merged into master or maybe just simply aren’t required anymore.
When this happens you can clean up the git repo by pruning these branches.
Now you should have a good idea of which branches you can safely remove from the remote.
There are two ways to delete remote branches depending on which version of git you are running.