Click or drag to resize

IOUtilitiesFileDelete Method

Deletes a file.

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

Parameters

path
Type: SystemString
The file path.
unprotect (Optional)
Type: SystemBoolean
if set to true the destination will be unprotected if needed.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of errors.

Return Value

Type: Boolean
true if the file was deleted, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also