FileSystem.DeleteFolder() (Method)

A method for deleting folders from the file system.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFileSystem.DeleteFolder(aName, aFlag)
Argument list:aNameThe name of a folder to be deleted
aFlagA flag that indicates whether to force the deletion or not

As is the case with files, there is an alternative way to delete folders too. You can either use this method or the Delete() method that belongs to the Folder object itself.

See also:Folder.Delete()