Removes an empty directory in MS-DOS. To delete directories with files or directories within them the user must use the deltree command, or if. Delete folder(s) Syntax RD pathname RD /S pathname RD /S /Q pathname Key / S: Delete all files and subfolders in addition to the folder itself. Use this to. What is the windows equivalent of rm -r [ directory -name]? deltree if I remember my DOS. It seems it's been updated this is what you want. A patch to previous script to make sure rights for deletion is set: I have created a. December 12, at 8: To remove all directories and subdirectories use rm command. No such file or directory. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. I have problem of Koha perl comiling….