ERASE (Short Name: ERA)
Top  Previous  Next

Use the ERASE command to delete a file.

erase

Options

filespec

Specifies a file name with a drive and path specification in the form D:\PATHNAME\FILENAME.EXT.

About the ERASE Command


If the file is in the current directory, you can omit its path name in the file specification.

R:BASE requires you to close a database before erasing it. ERASE is irreversible. When you use wildcards with ERASE at the R> prompt, R:BASE prompts you to press [Esc] to cancel, or [Enter] to delete the files.

Examples

The following command erases all files in the OLDSALES directory on the current drive.

ERASE \oldsales\*.*


The following command lines close then erase the four files of the mydb database in the OLDDATA directory on drive E:.

DISCONNECT 
DELETE e:\olddata\mydb.rb?