Click or drag to resize

IOUtilitiesPathDelete Method

Deletes the specified directory or file and, if indicated, any subdirectories and files in the directory.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static void PathDelete(
	string path,
	bool recursive = false,
	bool throwOnError = true
)

Parameters

path
Type: SystemString
The path of the directory or file to remove.
recursive (Optional)
Type: SystemBoolean
true to remove directories, subdirectories, and files in path; otherwise, false.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of errors.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also