When I try to delete an Excel file I get an error:
"The resource you are attempting to access is locked"
The Excel file can be deleted after 7 minutes but I have found a solution here:
http://www.cleverworkarounds.com/2021/02/21/how-to-clear-annoying-excel-file-locks-in-power-automate/comment-page-1/
It is possible to call the following API
_api/web/Lists/GetByTitle('DocLib')/GetItemById(ID)/recycle
and unlock the file located on One Drive?
I tried to use it but this API needs a "document library" parameter
which I do not understand (I'm a total beginner with Microsoft Power Automate)
Do you think it is possible to use this API to unlock the file that is located
on my One Drive?
My One Drive files can be listed using the following URL
https://ZZZZ-my.sharepoint.com/personal/UUUU/_layouts/15/onedrive.aspx
ZZZZZ is my compnay name
UUUUU is my user name
What is the DocLib parameter I should use?
Kind regards,
Mark