seperate branch deletion logic for local and remote branches