Kill

This method deletes files from a disk.

Syntax

filesystem.Kill pathname

Parameters

filesystem
Reference to a FileSystem control.
pathname
Required. String expression that specifies one or more file names to be deleted. The pathname can include the directory or folder.

Return Value

None.

Remarks

The Kill method supports the use of multiple-character (*) and single-character (?) wildcards to specify multiple files.

An error occurs if you try to use Kill to delete an open file.