the directory is not empty cmd code example Example: cmd remove directory not empty windows rmdir /S directory_to_be_deleted