top of page
  • Writer's pictureYash Agarwal

Delete files older than ‘X’ days from OneDrive using Power Automate

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.

Automate file management in OneDrive using Flow
Automate file management in OneDrive using Flow

Recent Posts

See All
bottom of page