Skip to content

DelFile (delete a file)

ts
function DelFile(what: string): boolean;

This function tries to delete the what file from a local file system, and returns true if the operation is successful, or false if it fails.

This function accepts the following parameters:

ParameterTypeRequirementExplanation
whatstringrequiredmust be a valid and existing file in a local file system

Possible return values:

ValueExplanation
truethe function succeeded: the file was deleted
falsethe function failed: the file was not deleted