DELETE        Delete local file(s)

Top  Previous  Next

Syntax:

DELETE

[ file name ]

Arguments:

[ file name ]

Variable or string defining a file or path name; if no path is defined, Robo-FTPs working folder is used.

Options:

/force

Delete files even if they have read-only permissions set.

 

 

This script command deletes the specified local file or files. This is an example of the DELETE command:

 

DELETE "file name"

 

Wildcard file names are allowed with the DELETE command. For example, the following command deletes all files with an extension of .html from a local folder named c:\mysite.

 

DELETE "c:\mysite\*.html"

 

 

To delete file(s) on the FTP site, use the FTPDELETE script command.  Use the DELDIR command to delete an empty local directory.

 

After any files have been deleted, the %deletefiles internal script variable is automatically populated with the filenames of all such files.

 

Related command(s): COPY, APPEND, RENAME, WORKINGDIR, Using the %deletefiles and %ftpdeletefiles Variables