system.directory.delete

Syntax

b := system.directory.delete(s<,bforce>)

Deletes the directory given by s. Returns true if successful. The directory will only be deleted if it is empty.

If bforce is set to true, then the directory and its contents will be deleted whether it is empty or not. This option should be used with caution.

Returns:

b - true if the directory is deleted

Arguments:

s - The name of the directory to delete bforce - if true then the directory will be deleted regardless if it is empty or not. The default value is false.