Click or drag to resize

Win32FindDataDeleteDirectory Method (String, Win32FindDataEnumerateOptions)

Deletes the specified directory and, if indicated, any subdirectories and files in the directory. The operation first deletes all the files in the directory and then deletes the directory itself.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool DeleteDirectory(
	string path,
	Win32FindDataEnumerateOptions options
)

Parameters

path
Type: SystemString
The name of the directory to remove.
options
Type: ShellBoost.Core.UtilitiesWin32FindDataEnumerateOptions
The options to use when enumerating files in the directory.

Return Value

Type: Boolean
true if the directory existed and no errors have occured during delete operations; otherwise false.
See Also