windows rmdir not empty code example Example 1: rmdir not empty rm -rf dir-name Example 2: remove directory not empty windows rd /s /q "path"