Delete non git directory in git bash, windows

racemic picture racemic · Mar 11, 2014 · Viewed 38.6k times · Source
xx@xx-PC ~/xampp/htdocs/sites
$ rmdir /s "yo-2"
rmdir: `/s': No such file or directory
rmdir: `yo-2': Directory not empty

xx@xx-PC ~/xampp/htdocs/sites
$ rmdir "yo-2"
rmdir: `yo-2': Directory not empty

I cant seem to get rmdir to work in git bash. Its not in a git repo and I've tried the above. Mkdir works as expected, why doesnt this?

Answer

Raul Andres picture Raul Andres · Mar 11, 2014

rmdir will not work if directory is empty

Try

  rm -rf yo-2

git-bash is a Linux like shell