removeDir |
This Web service operation deletes a directory on the FTP server. For this Web service operation to work, the specified directory has to be empty.
SOAP Request
<removeDir xmlns="http://schemas.cordys.com/1.0/ftp"> <server>ftpserver</server> <user>anonymous</user> <password>[email protected]</password> <portno>21</portno> <notification-subject>FTP</notification-subject> <directory>\Test</directory> </removeDir>
Request Parameters
Tags |
Description |
---|---|
server |
Name of the FTP server from which the files are to be deleted. |
user |
Name of the FTP user |
password |
Password of the FTP user |
portno |
The port number used by the FTP server. This tag is optional. |
notification-subject |
Notification subject on which the user has to subscribe to the Event service, to obtain the status of the request |
directory |
The path of the directory to be deleted |
SOAP Response
<removeDirResponse xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <server xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">ftpserver</server> <user xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">anonymous</user> <portno xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">21</portno> <notification-subject xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">FTP</notification-subject> <directory xmlns="http://schemas.cordys.com/1.0/ftp" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">\Test</directory> <statuscode>250</statuscode> <status>RMD command successful. </status> </removeDirResponse>