File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ Delete a Collection
114
114
You can delete a collection by using the ``Drop()`` method on a ``Database``
115
115
instance.
116
116
117
+ The following example deletes a collection named
118
+ ``test_collection``:
119
+
117
120
.. literalinclude:: /includes/databases-collections.go
118
121
:start-after: start-delete-collection
119
122
:end-before: end-delete-collection
@@ -126,7 +129,7 @@ instance.
126
129
Dropping a collection from your database permanently deletes all documents
127
130
and all indexes within that collection.
128
131
129
- Drop a collection only if the data in it is no longer needed .
132
+ Drop a collection only if you no longer need the data in that collection .
130
133
131
134
API Documentation
132
135
-----------------
You can’t perform that action at this time.
0 commit comments