Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

- Previous: Clearing a database
- Next: Recovering from Session Data Corruption

### Removing a Database

To remove an existing database, use the `hadbm delete` command. This command deletes the database’s configuration files, device files, and history files, and frees shared memory resources. The database you want to remove must exist and must be stopped. See Stopping a Database.

The command syntax is:

    hadbm delete
    [--adminpassword=password | --adminpasswordfile=file]
    [--agent=maurl]
    [dbname]

The dbname operand specifies the database name. The default is `hadb`.

See General Options for a description of command options. For more information, see hadbm-delete(1).

##### Example 3–11 Example of removing a database

The command:

    hadbm delete

deletes the default database, `hadb`.

- Previous: Clearing a database
- Next: Recovering from Session Data Corruption

- © 2010, Oracle Corporation and/or its affiliates