Skip to content

DELETE_FILES ​

DELETE_FILES deletes multiple files and/or directories.

Syntax ​

leo-grammar
CC "AdoScript" DELETE_FILES strValue

#--> RESULT ecode:intValue

Parameters ​

  • <main-parameter> (strValue) - specifies file(s)

Returns ​

  • ecode (intValue) - contains the error code or is 0 in case of success.

Details ​

The files which shall be deleted are specified with the main parameter. This can be the name of one file, e.g. "d:\temp\test.html", or a name containing wildcards, e.g. "d:\temp\**.html". Relative paths relate to the current working directory (CWD).
If a (directly specified or matching) source file name is the name of a directory, a complete (recursive) deletion of that directory is performed.

This command works only with files in the file system, not with files in the database. FILE_DELETE works with database files, but does not interpret wildcards.

See Also ​

FILE_DELETE

Examples ​

asc
CC "AdoScript" DELETE_FILES "d:\\temp1\\**.html"

Deletes all html files in 'd:\temp1'.

Versions and Changes ​

Available since ADOxx 1.3