FileSystem.Delete(String, Variable) Method

Top 

Description

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

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

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

 

Method Signature

FileSystem.Delete(

String path,


Variable allowMissing)

 

 

Arguments

path


Description:

The path to the file or directory to be deleted.

Repeatable:

1 to Unlimited times

 

 

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(myString1, myVariable1);

 

 

See also

FileSystem Object

FileSystem.Delete

Interfacing with Files Guide