top of page
  • Writer's pictureYash Agarwal

Delete files older than ‘X’ days from OneDrive using Flow

In this article, I will show you how to setup the 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

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

Recent Posts

See All

In this #PowerShot, I will share a flow setup that can be used to export tasks related data from a planner plan to Excel. This includes data like the categories applied to a task, notes on the task, c

bottom of page