Group: Internet Functions (WinInet) - Library: wininet
How to delete file on FTP server
BOOL FtpDeleteFile(
HINTERNET hConnect,
LPCTSTR lpszFileName
);
DECLARE INTEGER FtpDeleteFile IN wininet;
INTEGER hConnect,;
STRING lpszFileName
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.
Returns TRUE if successful, or FALSE otherwise.