With git remote prune origin
I can remove the local branches that are not on the remote any more.
But I also want to remove local branches that were created from those remote branches (a check if they are unmerged would be nice).
How can I do this?