file_delete
This function irreversibly deletes a given file.
bool file_delete(string filename)
Parameters:
filename
The name of the file to delete.
Return value:
true on success, false on failure.
Remarks:
Please note that certain attributes on the file can cause the deletion to fail. Also, if the file is currently being used by another program, the operation will fail.
This function works with both absolute and relative paths.
Example:

    // Delete the file C:\test\unusable.txt

    void main()
    {
    if(file_delete("C:\\test\\unusable.txt"))
    {
    alert("Information", "The file was deleted successfully.");
    }
    else
    {
    alert("Error", "The file could not be deleted.");
    }
    }