[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

DeleteDirectory

Deletes the specified directory (or only its contents when OnlyChildren is True).

Declaration

Source position: fileutil.pas line 58

function DeleteDirectory(

  const DirectoryName: string;

  OnlyChildren: Boolean

):Boolean;

Arguments

DirectoryName

  

The name of the directory for processing.

OnlyChildren

  

If True, only the contents ('children') of the directory are removed.

Function result

Returns True if the directory or its contents were correctly removed.

Description

Returns True when the specified entries are deleted on the local file system. Returns False when:


Version 3.2 Generated 2024-02-25 Home