FileSystem.Delete Method

Top 

Description

Deletes the specified file or directory path. 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.

 

Overload List

Signatures

Return Value

Description

FileSystem.Delete(String path)

StringArray

Deletes the specified file or directory path. If path is a directory, all files and subfolders will be deleted, recursively. An error will be reported if the delete operation is unsuccessful.

FileSystem.Delete(StringArray paths)

StringArray

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.

FileSystem.Delete(StringArray paths, Variable allowMissing)

StringArray

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.

FileSystem.Delete(String path, Variable allowMissing)

StringArray

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.

 

 

See also

FileSystem Object

Interfacing with Files Guide