Product SiteDocumentation Site

8.22. SysFileDelete


>>-SysFileDelete(file)-----------------------------------------><

Deletes a file. SysFileDelete does not support wildcard file specifications.
Parameter:
file
The name of the file to be deleted.
Return codes:
0
File deleted successfully.
Other
An error occurred. On Windows, a Windows System Error code (Section 8.1, “A Note on Error Codes” is returned. This may be one of the following, but could be others.
2
File not found.
3
Path not found.
5
Access denied or busy.
26
Not DOS disk.
32
Sharing violation.
36
Sharing buffer exceeded.
87
Does not exist.
206
File name exceeds range error.

Example 8.8. RexxUtil - SysFiledelete

/* Code */
parse arg InputFile OutputFile
call SysFileDelete OutputFile   /* unconditionally erase output file */