how to remove directory with contents in w10 cmd code example Example: how to remove directory with contents in w10 cmd rmdir /S "MyDirectory"