Method FTPClient():delete() Professional

Removes a file from the FTP server.

Syntax
:delete( <cFilename> ) --> lSuccess
Parameters
<cFilename>
The parameter is a character string holding the name of the file to be removed from the FTP server. <cFilename> must include the file name plus path information specified relative to the current directory on the server. Alternatively, the path may be specified as an absolute path.
Return

The method returns .T. (true) if the file could be removed from the server, otherwise .F. (false) is returned.

Description

The method is used to remove a file from an FTP server. When a connection to the FTP server does not exist, it is established. The file is then deleted on the server if the user has the rights required for this operation.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.