1212 :depth: 2
1313 :class: singlecol
1414
15- The ``dropDatabase`` command removes the specified database from the storage
16- configuration. If you drop a database that contains one or more collections,
17- the collections are also removed from the storage configuration.
15+ The ``dropDatabase`` command removes the specified database from the
16+ storage configuration. If you drop a database that contains one or more
17+ collections, the collections are also removed from the storage
18+ configuration.
1819
1920.. _dl-drop-database-cmd-syntax:
2021
@@ -50,22 +51,12 @@ Parameters
5051Output
5152~~~~~~
5253
53- The command prints the following output if the command succeeds. To check
54- whether the database was dropped from the storage configuration, run
55- the ``show dbs`` and ``storageGetConfig`` commands. If the command prints errors,
54+ The command prints the following output if the command succeeds or if
55+ there is no database with the specified name to drop. To check whether
56+ the database was dropped from the storage configuration, run the ``show
57+ dbs`` and ``storageGetConfig`` commands. If the command prints errors,
5658see :ref:`dl-drop-database-cmd-errors` below for recommended solutions.
5759
58- .. code-block:: json
59- :copyable: false
60-
61- { "ok" : 1, "dropped" : "<database>" }
62-
63- where ``<database>`` is the name of the database that was dropped from
64- the storage configuration.
65-
66- If there is no active database to drop and therefore no database was dropped,
67- the command returns the following output:
68-
6960.. code-block:: json
7061 :copyable: false
7162
@@ -90,7 +81,7 @@ The previous command prints the following output:
9081.. code-block:: json
9182 :copyable: false
9283
93- { "ok" : 1, "dropped" : "egS3Store" }
84+ { "ok" : 1 }
9485
9586.. _dl-drop-database-cmd-errors:
9687
0 commit comments