Delete File
Use this command to delete a file. This command works with absolute and relative paths.
The allowed paths for the DELETE FILE command are specified by the PERFMITTED_FILEMAINTENANCE_PATH parameter in the lv_af.cfg file, located in the working directory of the lv_af.exe. Files that cannot be deleted are defined by the EXCLUDED_FILEMAINTENANCE_FILES parameter in the same file. These parameters only apply when they are set.
Syntax:
DELETE FILE "[Path]\FileName"
where:
- path is an optional parameter and can be specified relative to the executing procedure or can be an absolute path.
- FileName is the name of the file that will be deleted.
Syntax example:
DELETE FILE "logs\export\export.log"
See also