The FileSystemObject VBA DeleteFolder function deletes a specified folder or folders.
VBA DeleteFolder Syntax
fso.DeleteFolder( foldername, [ force ] )
The location names of folder(s) to delete. You can use wildcards such as *.* to specify more than a single folder matching the pattern.
Optional. If True only read-only folders are deleted. If False any folders are deleted. False is default.
VBA DeleteFolder Examples
Set fso = CreateObject("Scripting.FileSystemObject")
'Delete specified folder
'Delete all Sub Subfolders within the C:\Src folder
'Delete all subfolders