File Management
The RemoveFile function deletes an existing file.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.
FALSE
.FALSE
.FALSE
.FILE_ATTRIBUTE_TEMPORARY
attribute. This attribute can improve performance by indicating that the file is to be used for temporary storage. The system can move the file from main memory to the paging file as needed. If the file is not written to for a specified interval, the system can automatically delete it.Value | |
---|---|
Minimum supported client | Windows 2000 Professional |
Minimum supported server | Windows 2000 Server |
Header | fileapi.h (include windows.h ) |
Library | Kernel32.lib |
DLL | Kernel32.dll |
Unicode and ANSI versions | RemoveFileW (Unicode) and RemoveFileA (ANSI) |