ssCore.FTP.removeFile

Remove the specified file from the FTP server.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

remoteFile - Path to the remote file on the FTP server.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.FTP.removeFile( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.FTP.removeFile( paramsObject );


Notes:

The remoteFile is assumed to be a reference to a file in the current directory on the FTP server, but you may specify absolute paths as well.

If the first two characters in the remotefile path are ".." it is a reference to one level above the current directory.

If the first character of the remotefile path to "/" to specify an absolute directory.

                

Examples:

ssCore.FTP.removeFile({remoteFile:"file.jpg"});