To delete a database, you first transfer it to the OFFLINE operational state. If you want to keep the database files, you can specify this in the command for deleting the database.
You want to delete the database DEMODB including all database files (system default value).
You can find the prerequisites under Database Manager CLI, db_offline, db_drop
Call Database Manager CLI in session mode, log on as operator DBM with the password DBM, connect to the database DEMODB:
>dbmcli –u DBM,DBM –d DEMODB
dbmcli on DEMODB>
Transfer the database to the OFFLINE operational state:
dbmcli on DEMODB>db_offline
OK
Delete the database:
dbmcli on DEMODB>db_drop
OK
You have deleted the database DEMODB.
You can confirm this by displaying the list of existing databases (see: Database Manager CLI, db_enum).