DeleteFile

Last Updated2014-08-30
Created At2007-01-07

Deletes a file.

native bool DeleteFile(const char[] path, bool use_valve_fs = false, const char[] valve_path_id = "DEFAULT_WRITE_PATH")

Parameters

const char[] path
Path of the file to delete.
bool use_valve_fs
If true, the Valve file system will be used instead. This can be used to delete files existing in the Valve search path, rather than solely files existing directly in the gamedir.
const char[] valve_path_id
If use_valve_fs, a search path from gameinfo or NULL_STRING for all search paths.

Return Value

bool True on success, false on failure or if file not immediately removed.