|
1 | 1 | # coding: utf-8 |
2 | 2 |
|
3 | | -# (C) Copyright IBM Corp. 2019, 2024. |
| 3 | +# (C) Copyright IBM Corp. 2019, 2025. |
4 | 4 | # |
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
6 | 6 | # you may not use this file except in compliance with the License. |
|
14 | 14 | # See the License for the specific language governing permissions and |
15 | 15 | # limitations under the License. |
16 | 16 |
|
17 | | -# IBM OpenAPI SDK Code Generator Version: 3.97.0-0e90eab1-20241120-170029 |
| 17 | +# IBM OpenAPI SDK Code Generator Version: 3.105.0-3c13b041-20250605-193116 |
18 | 18 | """ |
19 | 19 | IBM Watson® Discovery is a cognitive search and content analytics engine that you can |
20 | 20 | add to applications to identify patterns, trends and actionable insights to drive better |
@@ -1206,6 +1206,23 @@ def delete_document( |
1206 | 1206 | remove subdocuments that are generated by an uploaded file, delete the original |
1207 | 1207 | document instead. You can get the document ID of the original document from the |
1208 | 1208 | `parent_document_id` of the subdocument result. |
| 1209 | + If the document with the given document ID exists, Watson Discovery first marks or |
| 1210 | + tags the document as deleted when it sends the 200 response code. At a later time |
| 1211 | + (within a couple of minutes unless the document has many child documents), it |
| 1212 | + removes the document from the collection. |
| 1213 | + There is no bulk document delete API. Documents must be deleted one at a time |
| 1214 | + using this API. However, you can delete a collection, and all the documents from |
| 1215 | + the collection are removed along with the collection. |
| 1216 | + The document will be deleted from the given collection only, not from the |
| 1217 | + corresponding data source. Wherever relevant, an incremental crawl will not bring |
| 1218 | + back the document into Watson Discovery from the data source. Only a full crawl |
| 1219 | + will retrieve the deleted document back from the data source provided it is still |
| 1220 | + present in the same data source. |
| 1221 | + Finally, if multiple collections share the same dataset, deleting a document from |
| 1222 | + a collection will remove it from that collection only (in other remaining |
| 1223 | + collections the document will still exist). The document will be removed from the |
| 1224 | + dataset, if this document is deleted from all the collections that share the same |
| 1225 | + dataset. |
1209 | 1226 |
|
1210 | 1227 | :param str project_id: The Universally Unique Identifier (UUID) of the |
1211 | 1228 | project. This information can be found from the *Integrate and Deploy* page |
|
0 commit comments