git clear in remote branch code example Example: git remove deleted remote branches git fetch origin --prune