FileSystem.Delete(String) Method

Top 

Description

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.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

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

 

Method Signature

FileSystem.Delete(

String path)

 

 

Arguments

path


Description:

The path to the file or directory to be deleted.

Repeatable:

1 to Unlimited times

 

 

 

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

 

 

See also

FileSystem Object

FileSystem.Delete

Interfacing with Files Guide