C4 Engine
C4 Engine API Documentation


Defined in:  C4Files.h
Deletes a file.

static FileResult DeleteFile(const char *name);

name A pointer to the name of the file to delete. If a path name is specified, it is interpreted relative to the application. Directory names preceding a file name or another directory name should be followed by a single forward slash character (/).
The DeleteFile function attempts to delete the file whose name is given by the name parameter and returns one of the following file result codes.
kFileOkay The file was successfully deleted.
kFileDeleteFailed The file could not be deleted because the operating system returned an error.