mqsideletedb command

Supported platforms

  • Windows

Purpose

The mqsideletedb removes a database that has been created by mqsicreatedb. This includes deleting the database and removing the ODBC data source name. If this is the last database managed by DatabaseInstanceMgr, the Derby Network Server and DatabaseInstanceMgr service are also stopped and removed.

Syntax

Parameters

DatabaseName
This must be the only parameter. Specify the name of the database that you want to delete. Warning: all the data stored in this database is permanently deleted.
-d DeleteAllDatabases
This must be the only parameter. Specify this option to delete all the databases that have been created by mqsicreatedb. Warning: all the data stored in ALL databases is permanently deleted.

Authorization

The user ID used to invoke this command must have Administrator authority on the local system and be part of the mqbrkrs group.

Responses

This command returns the following responses:

  • BIP9804 No database of name xxx exists, no action taken
  • BIP9807 The IBM Derby Network Server on Port number xxxx, has been shutdown
  • BIP9810 The IBM MQSeries Brokers DatabaseInstanceMgr service could not be found
  • BIP9813 External process time out

Examples

The following example deletes the database brokerdb:
mqsideletedb brokerdb