logo Rmdir delete a folder on the remote computer


Return to Introduction     

rmdir path




pathis name and location of the folder to be deleted from the remote computer. The path is relative to the current folder. The path must be enclosed in double quotes if it contains a space.  For example:


rmdir "\sub folder\"



rmdir \oldfolder

rmdir oldfolder

rmdir "old folder"


Return Codes:


550This return code can be caused by any of the following:
The specified path does not exist in the current folder on the remote host. For example if the path is "folder/subfolder" you will get this error if "folder" does not exist.
You do not have the appropriate permissions to delete a folder on the remote host.        


Sample Script:


* Sample script using the "rmdir" command

* delete the \folder\subfolder folder

rmdir \folder\subfolder