Be aware that deleting the distant branch X within the command line employing a git thrust will likely eliminate the nearby remote-tracking branch origin/X, so It's not necessarily needed to prune the obsolete remote-monitoring department with git fetch --prune or git fetch -p. On the other hand, it wouldn't harm if you probably did it in any case.