int DeleteFile (char fileName[]);
Deletes an existing file or a group of existing files.
![]() |
Note Windows SDK also contains a DeleteFile function. If you include windows.h and do not include utility.h, you will receive compile errors if you call the DeleteFile function. |
Input | ||
Name | Type | Description |
fileName | string | The pathname of the file to delete. fileName can contain wildcard characters "?" and "*", in which case DeleteFile deletes all matching files. If you specify an empty string "", DeleteFile deletes the file found by the most recent call to GetFirstFile or GetNextFile. |
Name | Type | Description | ||||||||||||||||
result | integer | Result of the delete operation.
|