DirectoryInfo: Delete

Delete

Deletes this directory if it is empty, or all of its contents and itself if Recursive is set to True.



 Public Sub Delete(
	  Optional ByVal Recursive As Boolean )

Parameters

Recursive
[ByVal] Optional. Boolean. Indicates if all entries in the directory should be deleted.

Remarks

See Also

Project VBCorLib Overview Class DirectoryInfo Overview DirectoryInfo Properties DirectoryInfo Methods CreationTimeUtc (set) Equals