YouTip LogoYouTip

Met Deletefolder

ASP DeleteFolder Method

Complete FileSystemObject Reference

The DeleteFolder method deletes one or more specified folders.

Note: If you attempt to delete a folder that does not exist, an error will be raised.

Syntax

FileSystemObject.DeleteFolder(foldername[,force])
Parameter Description
foldername Required. The name of the folder to be deleted (wildcards can be used).
force Optional. A Boolean value that indicates whether read-only folders can be deleted. True indicates that read-only folders can be deleted, False indicates that they cannot. The default is False.

Example



    

Complete FileSystemObject Reference

← Met DriveexistsMet Deletefile β†’