to remove an unempty file from cmd directory $ rmdir /S nonemptyfile
del /S C:\Path\to\directory\*
rmdir folder/path /S /Q