remove folder command line windows if not empty code example Example: cmd remove directory not empty windows rmdir /S directory_to_be_deleted