DelTree (delete directory-tree)

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:

Parameter Type Requirement Explanation
what string required must be a valid and existing path to a directory you wish to delete

Possible return values:

Value Explanation
true the function succeeded: the directory was deleted
false the function failed: the directory was not deleted