Deletes the directory with all its contents. If any errors occur whilst the directory
is deleted, by default the errors are not raised. If you want the errors to be raised
use the overload where you can specify to raise errors.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Shared Sub DeleteDirectory( _
ByVal directory As DirectoryInfo _
)
|
Parameters
- directory
- The directory that must be deleted.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also