We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e8228 commit def0878Copy full SHA for def0878
source/reference/method/db.collection.drop.txt
@@ -32,13 +32,12 @@ Definition
32
collection. The method provides a wrapper around the
33
:dbcommand:`drop` command.
34
35
- :returns:
36
- - ``true`` when successfully drops a collection.
37
- - ``false`` when collection to drop does not exist.
+ :returns: ``true``
38
39
.. note::
40
41
- When run on a sharded cluster, ``db.collection.drop()`` always returns ``true``.
+ If the specified collection doesn't exist, ``db.collection.drop()``
+ still returns ``true``.
42
43
Compatibility
44
-------------
0 commit comments