FileSystem.Delete(StringArray) 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. An error will be reported if the delete operation is unsuccessful.

 

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(

StringArray paths)

 

 

Arguments

paths


Description:

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

 

 

 

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);

 

 

See also

FileSystem Object

FileSystem.Delete

Interfacing with Files Guide