Delete

Top  Previous  Next

RushApp.FTP.Delete

 

Declare

procedure Delete(NameList: string; Path: string; Name: string; Flag: Integer);

 

Description

Delete folder or file from specifies connected/idle FTP Servers

 

Parameters

NameList

Specifies which FTP need to delete folders or files, NameList can not be empty string

Path

Specifies a bookmark name or a directory

Name

a file name or a folder name, allows be a empty string

Flag

if you don't use Flag, use zero instead of it

 

RS_BOOKMARK

Param Path is a bookmark

 

RS_RECURSIVE

when delete a folder, do not use recursive delete

 

RS_FOLDER

tell FTPRush that's a folder, otherwise it will be executed as deleting file

 

RS_LOGOUT

disconnect from FTP after deleted

 

RS_LOGIN

connect to FTP when have no active FTP connections

 

RS_POPUP

to bring FTPRush on top

 

Examples

//delete file '/public/test.txt' from FTP1

RushApp.FTP.Delete('FTP1','/public','test.txt',0);

 

//delete file 'test.txt' from bookmark 'public' of FTP1 and FTP2

RushApp.FTP.Delete('FTP1;FTP2','public','test.txt',RS_BOOKMARK);

 

//delete file from folder 'test' from bookmark 'public' of FTP1

RushApp.FTP.Delete('FTP1','public','test',RS_FOLDER or RS_BOOKMARK);

 

//delete file from folder 'test' from bookmark 'public' of FTP1

RushApp.FTP.Delete('FTP1','public','test',RS_FOLDER or RS_BOOKMARK or RS_RECURSIVE);