It deletes the specified folder and its contents.
Syntax: fso.DeleteFolder (folderspec[, force])
fso: (Required) The name of a FileSystemObject object previously instantiated.
folderspec: (Required) The name of the folder to delete. The folderspec can contain wildcard characters in the last path component.
force: (Optional) Boolean value that is True of folders with the read-only attribute set are to be deleted;False if they are not. False is the default.
Set fso=createobject("Scripting.FileSystemObject") 'Folder to be deleted. FolderDel="D:final1" 'Delete the folder. fso.DeleteFolder(FolderDel) Set fso=nothing