DirectoryDelete Method (String, Boolean, Boolean) |
[AlphaFS] Deletes the specified directory and, if indicated, any subdirectories in the directory.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void Delete(
string path,
bool recursive,
bool ignoreReadOnly
)
Public Shared Sub Delete (
path As String,
recursive As Boolean,
ignoreReadOnly As Boolean
)
public:
static void Delete(
String^ path,
bool recursive,
bool ignoreReadOnly
)
static member Delete :
path : string *
recursive : bool *
ignoreReadOnly : bool -> unit
Parameters
- path
- Type: SystemString
The name of the directory to remove. - recursive
- Type: SystemBoolean
to remove directories, subdirectories, and files in path. otherwise. - ignoreReadOnly
- Type: SystemBoolean
overrides read only FileAttributes of files and directories.
Exceptions Remarks MSDN: .NET 4+ Trailing spaces are removed from the end of the path parameter before deleting the directory.
See Also