Directory.Delete Method (KernelTransaction, String, Boolean)
Click or drag to resize
DirectoryDelete Method (KernelTransaction, String, Boolean)
[AlphaFS] Deletes the specified directory and, if indicated, any subdirectories in the directory.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void Delete(
	KernelTransaction transaction,
	string path,
	bool recursive
)

Parameters

transaction
Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction.
path
Type: SystemString
The name of the directory to remove.
recursive
Type: SystemBoolean
to remove directories, subdirectories, and files in path. otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionThe path parameter contains invalid characters, is empty, or contains only white spaces.
ArgumentNullException
DirectoryNotFoundException
Remarks
MSDN: .NET 4+ Trailing spaces are removed from the end of the path parameter before deleting the directory.
See Also