<< back to sysax.com Product page

9.3. Deleting Files and Folders

The FTPDelete method can be used to delete local or remote folders. The "local" or "remote" keywords are used to specify whether a local or remote folder should be deleted. The "file", or "folder" keyword can be used specify whether a file or folder needs to be deleted.

Exhibit 9.5. IDL Definition of method to deleting files and folders


HRESULT FTPDelete ([in] BSTR b_localremote, [in] BSTR b_filefolder, [in] BSTR b_name);


Exhibit 9.6. Example usage of method to deleting files and folders (VBScript)


app.FTPDelete "local", "file", "myfile.txt"