Skip to content

Commit def0878

Browse files
authored
DOCSP-42821-drop-true (#9465) (#9480)
(cherry picked from commit b116cfe)
1 parent d4e8228 commit def0878

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/reference/method/db.collection.drop.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ Definition
3232
collection. The method provides a wrapper around the
3333
:dbcommand:`drop` command.
3434

35-
:returns:
36-
- ``true`` when successfully drops a collection.
37-
- ``false`` when collection to drop does not exist.
35+
:returns: ``true``
3836

3937
.. note::
4038

41-
When run on a sharded cluster, ``db.collection.drop()`` always returns ``true``.
39+
If the specified collection doesn't exist, ``db.collection.drop()``
40+
still returns ``true``.
4241

4342
Compatibility
4443
-------------

0 commit comments

Comments
 (0)