Delete files older than ‘X’ days from OneDrive using Power Automate
- Yash Agarwal
- Sep 28, 2019
- 1 min read
Updated: Oct 5, 2023
In this article, I will show you how to setup a Power Automate flow configuration to delete files older than ‘X’ days from OneDrive. This looks like an easy task by simply listing the entire folder and set a condition to check the modified date and delete the older files. The catch here is, the List Folder action on OneDrive gets you 20 items only. There is no way (pagination settings are not working either) to get more than 20 items.
Follow the post here: https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Delete-files-older-than-X-days-from-OneDrive-using-Flow/ba-p/368561

Comments