Method FTPClient():delete() Professional

Removes a file from the FTP server.

:delete( <cFilename> ) --> lSuccess
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.

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


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.


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.