meta data for this page
ibec_ftp_DeleteFile
Description
ibec_ftp_DeleteFile deletes a file on the FTP server.
Syntax
function ibec_ftp_DeleteFile(FTPSession : variant; FileName : string) : boolean;
ibec_ftp_DeleteFile deletes the file specified by the FileName variable. The function returns TRUE in case of success. Otherwise it returns FALSE.
Example
FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me;
Password=mysecret');
try
if (ibec_ftp_Connect(FTPSession)) then
begin
if (ibec_ftp_ChangeDir(FTPSession, '\uploads')) then
ibec_ftp_DeleteFile(FTPSession, 'db.fdb');
...
end;
finally
ibec_ftp_CloseSession(FTPSession);
end;