For history consistency not recommended to delete commits already exists in repository. Especially if there is multiple users. Right way is to revert unneeded commits in separate branch, push revert-commits to repository, than merge/rebase branch with ahead commit with repository branch and push result. Here is example of commands (you need to modify it for your needs):
git branch revert-commits origin/yourremotebranch
git checkout revert-commits
# check hashes of needed commits
git log --oneline
# revert them in reverse order
git revert 473f879
git revert 473f878
git revert 473f877
git push
# checkout to branch with ahead-commit
git checkout ahead-commit
# rebase reverts in ahead-commit branch to resolve possible conflicts
git pull --rebase origin yourremotebranch
git push
# delete unneeded revert-commits branch
git branch -D revert-commits