Visual Basic for Applications Reference

Kill Statement

See Also    Example    Specifics

Deletes files from a disk.

Syntax

Killpathname

The required pathnameargument is a string expression that specifies one or more file names to be deleted. The pathname may include the directory or folder, and the drive.

Remarks

In Microsoft Windows, Kill supports the use of multiple-character (*) and single-character (?) wildcards to specify multiple files