DELETE DATABASE Command

Example   See Also

Deletes a database from disk.

Syntax

DELETE DATABASE DatabaseName | ?
  [DELETETABLES] [RECYCLE]

Arguments

DatabaseName

Specifies the name of the database to delete from disk. The database you specify cannot be open. DatabaseName can include the path to the database with the database name.

?

Displays the Delete dialog box from which you can specify the name of the database to delete from disk.

DELETETABLES

Deletes the tables contained in the database from disk and the database containing the tables.

RECYCLE

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

Remarks

Always use DELETE DATABASE to delete a database from disk. Unlike the file manipulation utility of the operating system, DELETE DATABASE removes references to the database from the tables in the database.

If SET SAFETY is ON, Visual FoxPro asks if you'd like to delete the database you specify. If SET SAFETY is OFF, the database is automatically deleted from disk.