rm -rf directoryname
C:>rmdir /S nonemptydir nonemptydir, Are you sure (Y/N)? y C:>
rd /s /q "path"
sudo rm -R [Directory name]
C:>rmdir nonemptydir The directory is not empty.