Actually, the commands you tried will reset all tracked files to the state of origin/master
. However, git doesn't touch untracked files (usually). In fact, the whole purpose of the "untracked file"-feature is, to be able to have file completely independent of git inside the repository.
However, you can still make git delete untracked files if you want to:
To delete all untracked files from your repository, type:
git clean -f
(Source: How to remove local (untracked) files from the current Git working tree?)
Be aware, as the files you delete are untracked, they will be lost forever.