Syntax

erase [/P] [/F] [/S] [/Q] <file names>

Meaning

Delete one or more files from your file system. Use a full UNC path: it doesn't work with relative paths. And place the entired path+file name in between double quotes if there are spaces in the string. You can use wildcards (*) to remove multiple files at once. If you enter a directory name, all files in it will be deleted. This function can only be used in ADAPL as the parameter in a SYSTEM command.

/P asks for confirmation of every deletion.

/F forces removal of read-only files.

/S removes the indicated files from all subdirectories as well.

/Q in combination with wildcards, removes files without asking for confirmation.

Parameters between [ and ] are optional, and parameters between < and > must be replaced by an actual value. Do not include any of these brackets in your command.

Example

stat = SYSTEM('erase /P /S *.txt')