I have a SharePoint Online Site. In its Document I've multiple folders , sub folders and files of different types.
The thing is that I need to somehow delete all the files(only) under each and every folders or subfolders which are Created on or before year 2022.
It should not affect the present folder structures. So is there any possible way to do it ? I found something like, using Power Automate in Sharepoint will solve this problem, but I'm not an expert in that field.
Can anyone please help me out ?
This flow should work:
Get files (properties only).
Condition in Apply to each.
If yes, Delete file
If no, do nothing
Example flow below: