Skip to content

DelTree (delete directory-tree)

ts
function DelTree(what: string): boolean;

This function attempts to delete the what directory in the local file-system and all of the files and subdirectories in it, and returns true if the deleteion is successful, or false if the function fails.

This function accepts the following parameters:

ParameterTypeRequirementExplanation
whatstringrequiredmust be a valid and existing path to a directory you wish to delete

Possible return values:

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