IOUtilitiesPathDelete Method |
Deletes the specified directory or file and, if indicated, any subdirectories and files in the directory.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax 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 See Also