Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Folder Object Delete Method

Deletes a specified folder.

Syntax: VBScript Folder Object Delete Method

object.Delete force

Arguments: VBScript Folder Object Delete Method

object

The name of a Folder object. Required.

force

A Boolean value that is True if folders with the read-only attribute set are to be deleted; False (default) if they are not. Optional.

Remarks: VBScript Folder Object Delete Method

An error occurs if the specified folder does not exist.

The results of the Delete method on a Folder are identical to operations performed using DeleteFolder.

The Delete method does not distinguish between folders that have contents and those that do not. The specified folder is deleted regardless of whether or not it has contents.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.