Home > Contents > Index >
DELETEFILE
Deletes a file from disk.
Syntax
<DELETEFILE FILE="FILE_NAME"/>Parameters
FILE (required)
- The complete path and name of the file to be deleted. You cannot use wildcards such as * when specifying
FILE_NAME
.
Description
The
DELETEFILE
tag deletes a file from disk. Syntax must be specific to the operating system.Error Numbers
The possible values of
errno
include:
Value Description -300 File not found. -302 File not deleted. -303 Path not found.Example
This example deletes a Windows NT file called
foo.bar
in the directorytemp
.<SETVAR NAME="errno" VALUE="0"/> <DELETEFILE FILE="c:tempfoo.bar"/> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.