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:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax 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:
Booleantrue if no errors have occured during the operation; otherwise false.
See Also