Command
Type
Purpose
Deletes a speciÞed Þle or set of Þles.
Syntax
ERASE [ d: ][ path ] filename [/P]
Remarks
The DEL command and the ERASE command are functionally identical.
When no drive is speciÞed, the default drive is assumed. When no path is
speciÞed, the default path is assumed.
Global characters (? and *) can be used in the Þlespec. This should be done with
caution as it is possible to delete multiple Þles unintentionally.
When the Þlespec *.* is used to delete all Þles in the speciÞed subdirectory, a
veriÞcation message will be displayed:
Are you sure (Y/N) ?
Type Y only if you want all Þles in the speciÞed subdirectory to be erased (deleted).
There is not any ROM-DOS command to ÒundeleteÓ a Þle. Al-
though utilities exist which can attempt an undelete, certain fac-
tors can cause the deleted Þle to be partially or totally lost. The
ERASE command should be treated as a permanent delete.
ERASE deletes Þles within a subdirectory, not the subdirectory itself. For
subdirectory removal, see the RMDIR command.
Options
/P
ERASE
Internal
Caution
Chapter 5: ROM DOS Commands
5-47