Skip to content

Commit 0410b93

Browse files
authored
DOCSP-22720 collection.drop() always drops FLE2 collections (#1195)
* DOCSP-22720 collection.drop() always drops FLE2 collections * internal review feedback * external review feedback
1 parent aa6bd9c commit 0410b93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,20 @@ Behavior
8686

8787
- .. include:: /includes/extracts/5.0-changes-drop-sharding.rst
8888

89+
- Starting in MongoDB 6.0, the :method:`db.collection.drop()` method
90+
drops the specified collection and any internal collections related
91+
to encrypted fields.
92+
93+
.. warning::
94+
95+
The :method:`db.collection.drop()` method's behavior differs from
96+
the driver's ``drop`` method's behavior. The driver's connection
97+
must have automatic encryption enabled in order to drop both the
98+
specified collection and any internal collections related to
99+
encrypted fields. ``mongosh`` *always* drops the specified
100+
collection and any internal collections related to encrypted
101+
fields.
102+
89103
Resource Locking
90104
~~~~~~~~~~~~~~~~
91105

0 commit comments

Comments
 (0)