Deletes a file stored on the FTP server.
WebAPI.bdh
WebFtpDeleteFile( in hFtp : number, in sFileName : string ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hFtp | Valid handle to an FTP session. This handle must have been returned from a previous call to WebFtpConnect. |
sFileName | Null-terminated string that contains the name of the file to delete on the remote system |
// Deletes a file on the FTP server. dcltrans transaction TWebFtpDeleteFile var hFtp: number; begin WebFtpConnect(hFtp, "standardhost", WEB_PORT_FTP, "anonymous", "mymail@address.com"); WebFtpDeleteFile(hFtp, "renamed_test_file.txt"); WebFtpShutdown(hFtp); end TWebFtpDeleteFile;
WebMulti01.bdf
Ftp.sep