Directory: Delete

Delete

Deletes directories and files within directories.



 Public Sub Delete(
	  ByRef Path As String,
	  Optional ByVal Recursive As Boolean = False )

Parameters

Path
[ByRef] String. The top directory to be deleted.
Recursive
[ByVal] Optional. Boolean. If set to True, then all directories and files in the top directory will be deleted along with the top directory. Otherwise, the specified directory must be empty to be deleted.  

Default: False

See Also

Project CorLib Overview

Class Directory Overview