DELETE FILE Command

Example   See Also

Deletes a file from a disk.

Syntax

DELETE FILE [FileName | ?] [RECYCLE]

Arguments

FileName

Specifies the file to delete. FileName can contain wildcard characters such as * and ?. For example, to delete backup files with the extension .bak in the current directory, issue DELETE FILE *.BAK.

?

Displays the Delete dialog from which you can choose a file to delete.

RECYCLE

Specifies that the file isn't immediately deleted from disk and is placed in the Windows 95 Recycle Bin.

Caution   Any file deleted with this command cannot be retrieved. Even if SET SAFETY is ON, you are not warned before the file is deleted.

Remarks

The file you want to delete cannot be open when DELETE FILE is issued. The file name must include a path if it is on a different drive or volume, or in a different directory from the default, and the file name extension must be included. The file name cannot contain wildcards.

Before you delete a table in a database, issue REMOVE TABLE with the table name to remove references to the table from the database. If you delete a table that has an associated .FPT memo file, be sure to delete the memo file.