Take note that deleting the remote department X within the command line employing a git thrust will even eliminate the neighborhood distant-monitoring branch origin/X, so It's not necessarily necessary to prune the obsolete distant-monitoring branch with git fetch --prune or git fetch -p. Nevertheless, it would not damage if you did it in any case.