Graph API permanentDelete sends files to the SharePoint recycle bin
Good afternoon.
We have a problem deleting files from SharePoint using Graph API.
The context is a document management application that externally handles files located on SharePoint sites. This application uses the endpoint ‘POST /drives/{drive-id}/items/{item-id}/permanentDelete’ to delete files from SharePoint without sending them to the first or second level recycle bin.
The problem is that we have detected that in massive executions (around 300K permanent delete requests) there are some cases (around 20 files) where files deleted with ‘POST /drives/{drive-id}/items/{item-id}/permanentDelete’ are sent to the SharePoint recycle bin (first or second level).
How is this possible? What is the internal operability of the endpoint?
Thanks in advance, Fernando