DirectoryInfo.Delete Method
Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public void Delete (
bool recursive
)
Parameters
- recursive
true to delete this directory, its subdirectories, and all files; otherwise, false.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
DirectoryInfo Class
DirectoryInfo Members
System.IO Namespace