FileSystem.Delete(StringArray, Variable) Method

Top 

Description

Deletes the specified files and/or directories contained within the StringArray paths. If a path is a directory, all files and subfolders within will be deleted, recursively. If allowMissing is true, any missing files or directory will be skipped. An error will be reported if the delete operation is unsuccessful. Returns the list of files deleted.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

FileSystem.Delete(

StringArray paths,


Variable allowMissing)

 

 

Arguments

paths


Description:

A StringArray containing the paths to the files or directories to be deleted.

 

 

allowMissing


Description:

A flag which determines if missing files or directories will be skipped.

Valid Values:

Value

Label

0

false

1

true

 

 

 

 

Return Value

Type:

Array of string

 

 

Returns a StringArray populated with the names of the files and directories which were deleted.

 

Syntax

myStringArray1 = FileSystem.Delete(myStringArray2, myVariable1);

 

 

See also

FileSystem Object

FileSystem.Delete

Interfacing with Files Guide