Directory: Delete

Delete

Deletes directories and files within directories.



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

Parameters

Path
[ByVal] 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

Remarks

See Also

Project VBCorLib Overview Class Directory Overview Directory Properties Directory Methods CreateDirectory Exists