DeleteFtpFile Method
Class: FTP_SERVICE
This function can only delete files off of the FTP Server that are not read only or some how protected by the server.
=
Object.DeleteFtpFile
Parameter
lcRemoteFile
Remote file name
Type Character
Direction Input
Name and Path of the File to delete on the FTP Server.
Return value boolean
Returns .T. if the function successfully deleted the file from the FTP Server. Returns .F. if the function could not delete the file.
See also
Expand/Collapse source code of procedure DeleteFtpFile Source Code
      LPARAMETERS lcRemoteFile
      LOCAL fResult
      IF This.OpenFtpConnection(This.cStartupFolder)     && Open an FTP Handle
         lcRemoteFile = lcRemoteFile + cNULL

         =This.BeforeDeleteFtpFile(lcRemoteFile)
         fResult = FtpDeleteFile(This.nConnect_Handle, @lcRemoteFile)
         This.GetExtendedError()
         =This.AfterDeleteFtpFile(lcRemoteFile,fResult)
         =IIF(This.lMultiOperations,.T.,This.CloseFtpConnection())   && Close FTP Handle
         RETURN fResult = 1
      ENDIF
      RETURN .F.