I tried
git checkout OTHER_BRANCH -- /path/to/folder
The problem is with files that exist in the current branch, but do not exist on another branch. I want to delete them.
I think you want:
git rm -r /path/to/folder git checkout OTHER_BRANCH -- /path/to/folder