Method SFTPClient():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 SFTP server. The operation permanently removes the specified file.

In case of failure, detailed error information can be obtained using the :getLastError() and :getLastMessage() methods.

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.