Method FTPClient2():delete() Foundation

Deletes a file.

Syntax
:delete( <cFilename> ) --> lSuccess
Parameters
<cFilename>
The relative or fully qualified path of the file to be deleted on the server.
Return

.T. (true) if the file was successfully deleted, or .F. (false) otherwise.

Description

Deletes a file on the FTP server. The operation permanently removes the specified file.

In case of failure, detailed error information can be obtained using the :getLastError() and :getLastMessage() methods. Common failures include insufficient permissions, the file is currently in use or attempts to delete non-existent files.

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.