I am trying to delete a file from the trash using an HTTP request but I get the following error "{" odata.error ": {" code ":" - 1, Microsoft.SharePoint.Client.InvalidClientQueryException "," message ": {" lang ":" en-US "," value ":" The type SP.RecycleBinItemCollection does not support HTTP DELETE method. "}}}
clientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx":
is there any other solution to empty the recycle bin or permanently delete a file without going through the first and second level recycle bin?
Still having the same issue with that
Value is still empty
_api/web/RecycleBin?$filter=Title eq 'Test delete item from recycle bin if deleted before moving'&$select=Id
Hi @ChrisSullivan,
In the example I shared earlier the query was looking for a file, not a list item. That filter was using the LeafName property.
In your case it is a Title of list item you are using in your filter. In that case try and use the Title property in the filter instead.
_api/web/RecycleBin?$filter=Title eq '@{triggerOutputs()?['body/Name']}'&$select=Id
Hi there.
This is not working for me. I am trying to delete a list item from the recycle bin after it is delete.
I am using
"When an Item is Deleted" trigger and the dynamic content "FileNameWithExtention" for the LeafName.
_api/web/RecycleBin?$filter=LeafName eq'Test delete item from recycle bin if deleted before moving'&$select=Id
It is not pulling the ID from the Item....?
What might I be doing wrong?
Any solution for users No Business (no Sharepoint) to empty automatically the recycle bin?
Thank you very much!! It's very simple but it's working. Now, I can empty automatically my recycle bin every day.
Thanks for the solution! Can someone share the whole flow to copy-paste? I want to delete all items, empty recycle bin without exception. Thank you very much!
Show your flow. Do you see any errors?
Hi,
Could you share the entire PA flow you used? Trying to empty recycle bin like very 5-10 days but cant get it working properly after some test.
Hi.
https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj246426(v=office.15)
POST http://<sitecollection>/<site>/_api/web/RecycleBin/deleteAll()
it works!!!!! thank u so much 😍
WarrenBelz
146,518
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,710
Most Valuable Professional