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