#include<nwfile.h> or #include <nwcalls.h>NWCCODE N_API NWIntEraseFiles (NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle, pnstr8 path, nuint8 searchAttrs, nuint16 augmentFlag);
NWIntEraseFiles is replacing NWEraseFiles.
dirHandle can be zero if path points to the complete path, including the volume name.
searchAttrs includes system and/or hidden files. In other words, if only the system bit is set in searchAttrs, then all files are affected except hidden files. If only the hidden bit is set, all files are affected except system files. When neither bit is set (0x00), then only files that are not designated either hidden or system are affected.
Search attributes to use in finding a file follow:
0x00 none 0x02 FA_HIDDEN 0x04 FA_SYSTEM 0x06 both
path can specify either a file's complete path name or a path relative to the current working directory. For example, if a file's complete path name is SYS:ACCOUNT/DOMEST/TARGET.DAT and the directory handle mapping is SYS:ACCOUNT, the value of path could be either of the following:
SYS:ACCOUNT/DOMEST/TARGET.DATor
DOMEST/TARGET.DATpath can point to wildcards in the file name only. Wildcard matching uses the method defined by the application when it passes a wildcard character.
The client must have file deletion privileges in the target directory or this call will fail.
If a file has the immediate puge attribute set, the file cannot be recovered.
File Systems