TFile.Delete

function Delete(const Source: string): Boolean Source: a path to a file to delete Result: Whenever delete was successful or not

Description
This function deletes file pointed by Source. If the path is out of script's sandbox, EAccessViolation exception is thrown.