RMDIR Delete a remote directory
- directory: remote directory to be deleted.
If the remote directory is not empty ScriptFTP will delete all files and subdirectories within that remote directory.
RMDIR will return “OK” as soon as the remote directory has been removed successfully.
If the operation fails it will return an error code. You may retrieve the return value and execute various operations depending on this value. See Error handling