Click or drag to resize

Win32FindDataDeleteDirectory Method (String, Boolean)

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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool DeleteDirectory(
	string path,
	bool recursive
)

Parameters

path
Type: SystemString
The name of the directory to remove.
recursive
Type: SystemBoolean
true to remove directories, subdirectories, and files in path; otherwise, false.

Return Value

Type: Boolean
true if no errors have occured during the operation; otherwise false.
See Also