Hi all,
I've followed the steps in there to automate file deletion based on the creation dates.
Delete files from a sharepoint folder - Power Platform Community (microsoft.com)
However, folders are not getting deleted, If I dump all the files in one folder, and rerun the flow, all files get deleted without any issues.
That is the error "TobeDeleted/24-001 does not exist" I get which relates to one of the folders inside the main folder.
Any suggestions are welcome.
Thank you.
That worked perfectly, thank you so much.
Hi @jebz ,
To delete all contents from a folder, you can use the Delete item action. It's not supported to delete folders using Delete file action.
In Delete item action, you need to retrieve list name from Peek code in Get files action, copy table id and paste in the List name field in Delete item action:
Note that in Get file action, Include Nested Items needs to be false and in Delete file action it needs to use ID instead of Identifier.
Best regards,
WarrenBelz
146,513
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,692
Most Valuable Professional