$ git branch -d feature/xyz
error: The branch 'feature/xyz' is not fully merged.
hint: If you are sure you want to delete it, run 'git branch -D feature/xyz'.
Why this happens:
PR was merged with "Squash and merge" or "Rebase and merge"—this creates new commits instead of using your original commits.
Solution: Use capital -D to force delete:
$ git branch -D feature/xyz
Check first that the PR was indeed merged on GitHub before force deleting!