I would like to delete all files in a particular OneDrive for Business folder. I cannot do it normally because the number of files there is larger than some hidden limit and I am getting error 36. I can delete them one by one or in small batches that this will take forever. So, I would like to try a flow that would delete all those files for me one by one or in reasonably batches (100 at a time?), possibly waiting between deletions not to overwhelm the system. I suspect that listing all files in one go would also result in errors, so maybe the actions should be:
- List first 100 files in the given directory.
- Delete these files.
- Wait till completed.
- Repeat.
- Report when no files are found.
I am completely new to Flow so would really appreciate a recipe.
Thank you.