Overview (ERASE command)

ERASE removes a file from a disk.

Basic Specification

The basic specification is the keyword FILE followed by a file specification enclosed in quotes. The specified file is erased from the disk. The file specification may vary from operating system to operating system.

Syntax Rules

  • The keyword FILE is required, but the equals sign is optional.
  • ERASE allows one file specification only and does not accept wildcard characters. To erase more than one file, specify multiple ERASE commands.
  • The file to be erased must be specified in full. ERASE does not recognize any default file extension.

Operations

ERASE deletes the specified file regardless of its type. No message is displayed unless the command cannot be executed. Use ERASE with caution.