cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Document via API on Document Information Extraction

ThoreB
Discoverer
0 Kudos
129

Hello,

I found the section “Delete Document” in the documentation for the API: https://help.sap.com/docs/document-information-extraction/document-information-extraction/delete-doc...

There it is written that a single document can be deleted if the ID of the document is given:

ThoreB_0-1741619169083.png

Unfortunately, this does not work for me as described in the documentation. In my case, all documents are always deleted despite IDs being specified, but I don't want that.

Does anyone here have the same problem or is the problem known?

Thanks for your help

View Entire Topic
skoebe
Advisor
Advisor
0 Kudos

Dear ThoreB,

the reason, why documents are being deleted in the Document Extraction Service after some time is because of the (configurable) retention time. See also the help documentation here. In other words, the Document Extraction Service can not be used as a permanent storage of information, but will only allow to store documents and extraction results for a limited time before they are deleted automatically (based on the retention period). So, you can configure the service to store documents up to 30 days maximum, after which the data is deleted. 

Please note, that we are considering to introduce the possibility in the future to keep data even for longer periods of time. 

Hope this helps.

Document Information Extraction team

ThoreB
Discoverer
0 Kudos
Hello skoebe, I may not have formulated my question clearly enough. I would like to delete individual documents via API call (DOCUMENTATION). I am fully aware that the documents are only stored for up to 30 days and do not need to be changed. My requirement is that I want to delete individual documents in a targeted manner by sending an API call “DELETE: https://<URL>/document-information-extraction/v1/document/jobs” as described in the documentation and passing the payload parameter as a JSON object with the corresponding document ID. When I do this, however, all documents are deleted and not just the one for which I have specified the ID.
skoebe
Advisor
Advisor
0 Kudos

Hi ThoreB,
ok, that sounds really strange. Please see my second answer.

Thanks!