@@ -27,23 +27,23 @@ Definition
2727
2828 The :dbcommand:`delete` command has the following syntax:
2929
30- .. code-block:: javascript
30+ .. code-block:: none
3131
3232 {
33- delete: <collection>,
33+ delete: <collection>,
3434 deletes: [
3535 {
3636 q : <query>,
3737 limit : <integer>,
3838 collation: <document>,
39- hint: <document|string>,
40- comment: <any>
39+ hint: <document|string>
4140 },
4241 ...
4342 ],
43+ comment: <any>,
44+ let: <document>, // Added in MongoDB 5.0
4445 ordered: <boolean>,
45- writeConcern: { <write concern> },
46- let: <document> // Added in MongoDB 5.0
46+ writeConcern: { <write concern> }
4747 }
4848
4949 The command takes the following fields:
@@ -79,7 +79,32 @@ Definition
7979 collection.
8080
8181
82-
82+ * - ``comment``
83+
84+ - any
85+
86+ - .. include:: /includes/extracts/comment-content.rst
87+
88+ .. versionadded:: 4.4
89+
90+
91+ * - :ref:`let <delete-let-syntax>`
92+
93+ - document
94+
95+ - .. _delete-let-syntax:
96+
97+ Optional.
98+
99+ .. include:: /includes/let-variables-syntax.rst
100+
101+ .. include:: /includes/let-variables-syntax-note.rst
102+
103+ For a complete example using ``let`` and variables,
104+ see :ref:`delete-let-example`.
105+
106+ .. versionadded:: 5.0
107+
83108 * - :ref:`ordered <delete-command-ordered>`
84109
85110 - boolean
@@ -106,31 +131,6 @@ Definition
106131 .. include:: /includes/extracts/transactions-operations-write-concern.rst
107132
108133
109- * - ``comment``
110-
111- - any
112-
113- - .. include:: /includes/extracts/comment-content.rst
114-
115- .. versionadded:: 4.4
116-
117-
118- * - :ref:`let <delete-let-syntax>`
119-
120- - document
121-
122- - .. _delete-let-syntax:
123-
124- Optional.
125-
126- .. include:: /includes/let-variables-syntax.rst
127-
128- .. include:: /includes/let-variables-syntax-note.rst
129-
130- For a complete example using ``let`` and variables,
131- see :ref:`delete-let-example`.
132-
133- .. versionadded:: 5.0
134134
135135
136136 .. |operation| replace:: delete
0 commit comments