System:File:delete

From Aspen Documentation

Deletes the file with command appropriate for OS

Since 1.0

Arguments

string delete ([string $file = false])

file
Path to file. If left false, it will use any file path passed to useFile function.

Returns

Returns boolean if delete was successful.

Examples

If performing additional file functions, you must simply call this function after using the initial useFile

$this->APP->file->useFile('/path/to/file.xml');
$this->APP->file->delete();

Otherwise:

$this->APP->file->delete('/path/to/file.xml');