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

 

JScript File Object Delete Method

Deletes a specified file or folder.

Syntax: JScript File Object Delete Method

object.Delete( force );

Arguments: JScript File Object Delete Method

object

Required. Always the name of a File object.

force

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

Remarks: JScript File Object Delete Method

An error occurs if the specified file does not exist.

The results of the Delete method on a File are identical to operations performed using DeleteFile.

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