Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 996 Bytes

FtpDeleteFile.md

File metadata and controls

47 lines (32 loc) · 996 Bytes

Home

Function name : FtpDeleteFile

Group: Internet Functions (WinInet) - Library: wininet


Deletes a file stored on the FTP server.


Code examples:

How to delete file on FTP server

Declaration:

BOOL FtpDeleteFile(
    HINTERNET hConnect,
    LPCTSTR lpszFileName
);
  

FoxPro declaration:

DECLARE INTEGER FtpDeleteFile IN wininet;
   	INTEGER hConnect,;
   	STRING  lpszFileName  

Parameters:

hConnect [in] Valid HINTERNET handle returned by a previous call to InternetConnect using INTERNET_SERVICE_FTP.

lpszFileName [in] Pointer to a null-terminated string that contains the name of the file to delete on the remote system.


Return value:

Returns TRUE if successful, or FALSE otherwise.