ibec_ftp_RemoveDir deletes a directory on the FTP server.
function ibec_ftp_RemoveDir(FTPSession : variant; DirName : string) : boolean;
ibec_ftp_RemoveDir deletes a specified directory on the FTP server. The DirName variable specifies the name of the directory to delete. The function returns TRUE in case of success. Otherwise it returns FALSE.
FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret'); try if (ibec_ftp_Connect(FTPSession)) then begin ibec_ftp_RemoveDir(FTPSession, 'DataFiles'); ... end; finally ibec_ftp_CloseSession(FTPSession); end;