@@ -142,18 +142,9 @@ DeleteOne() Example: Full File
142142.. include:: /includes/usage-examples/example-intro.rst
143143
144144The following example is a fully runnable file that finds and deletes an
145- existing document in the ``restaurants`` collection. Select the
146- :guilabel:`Struct` or :guilabel:`bson.D` tab to see the corresponding code:
145+ existing document in the ``restaurants`` collection.
147146
148- .. tabs::
149-
150- .. tab:: Struct
151- :tabid: structExample
152-
153- The following code uses structs to define and delete a document in the
154- ``restaurants`` collection:
155-
156- .. io-code-block::
147+ .. io-code-block::
157148 :copyable: true
158149
159150 .. input:: /includes/usage-examples/code-snippets/deleteOne.go
@@ -166,74 +157,30 @@ existing document in the ``restaurants`` collection. Select the
166157
167158 Documents deleted: 1
168159
169- .. tab:: bson.D
170- :tabid: bsonExample
171-
172- The following code uses a bson.D type to define and delete a document in the
173- ``restaurants`` collection:
174-
175- .. io-code-block::
176- :copyable: true
177-
178- .. input:: /includes/usage-examples/code-snippets/deleteOneBson.go
179- :language: go
180- :dedent:
181-
182- .. output::
183- :language: none
184- :visible: false
185-
186- Documents deleted: 1
187-
188160DeleteMany() Example: Full File
189161~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190162
191163.. include:: /includes/usage-examples/example-intro.rst
192164
193- The following example is a fully runnable file that finds and deletes multiple
194- existing documents in the ``restaurants`` collection. Select the
195- :guilabel:`Struct` or :guilabel:`bson.D` tab to see the corresponding code:
165+ The following example is a fully runnable file that performs the following
166+ actions on the ``restaurants`` collection:
196167
197- .. tabs::
168+ - Matches and deletes documents where the ``cuisine`` field value is ``German``
169+ and the ``borough`` field value is ``Queens``
170+ - Deletes all matching documents
198171
199- .. tab:: Struct
200- :tabid: structExample
201-
202- The following code uses structs to define and delete documents in the
203- ``restaurants`` collection:
204-
205- .. io-code-block::
206- :copyable: true
207-
208- .. input:: /includes/usage-examples/code-snippets/deleteMany.go
209- :language: go
210- :dedent:
211-
212-
213- .. output::
214- :language: none
215- :visible: false
216-
217- Documents deleted: 6
218-
219- .. tab:: bson.D
220- :tabid: bsonExample
221-
222- The following code uses a bson.D type to define and delete documents in the
223- ``restaurants`` collection:
224-
225- .. io-code-block::
226- :copyable: true
172+ .. io-code-block::
173+ :copyable: true
227174
228- .. input:: /includes/usage-examples/code-snippets/deleteManyBson .go
229- :language: go
230- :dedent:
175+ .. input:: /includes/usage-examples/code-snippets/deleteMany .go
176+ :language: go
177+ :dedent:
231178
232- .. output::
233- :language: none
234- :visible: false
179+ .. output::
180+ :language: none
181+ :visible: false
235182
236- Documents deleted: 6
183+ Documents deleted: 6
237184
238185Additional Information
239186----------------------
0 commit comments