False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.

<Directory to Delete>: Character string (with quotes)

Name and full (or relative) path of directory to delete. A UNC path can be used. The wildcard characters (*,?) are ignored. This directory name may (or may not) end with "\".

Versions 15 and later

This parameter can be in Ansi or Unicode format.

New in version 15

This parameter can be in Ansi or Unicode format.

This parameter can be in Ansi or Unicode format.

This path must be a full path or a UNC path. It cannot be a relative path.

Only the directories found in the directory of the application can be handled.

<Deletion Indicator>: Optional constant

frReadOnly

Also deletes the read-only files. If this constant is not specified, the function will return False if read-only files must be deleted.

This constant is not available.

frRecursive

The contents of directory and sub-directories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted.

frToRecycleBin

Sends the directory to the Windows bin instead of deleting it.

This constant is not available.

<Deletion Indicator> is empty by default. None of these options is selected.

Remarks

Operating mode in Windows Vista (and later)

If this function does not operate properly in Windows Vista (and later), check whether the file used is not found in one of the system directories (Windows directory or "Program Files" directory).

Indeed, in Windows Vista (and later), with the UAC mechanism (User Account Control) enabled, you must have the administrator privileges to handle and/or modify the files found in the system directories (Windows directory or "Program Files" directory).

Programming tip: To handle and/or modify the files without having administrator privileges, you should:

avoid writing into the Windows directory or into the "Program Files" directory,

use the system directory corresponding to the application (returned by SysDir associated with the srCommonAppData constant).

Equivalence

The operating mode of fRemoveDir is equivalent to the operating mode of ceRemoveDir.

The only difference is:

fRemoveDir deletes a directory found on the Pocket PC from a WINDEV Mobile application.