how to delete a folder in cmd that is not empty code example Example: cmd remove directory not empty windows rmdir /S directory_to_be_deleted