scorekruto.blogg.se

Remove windows 10 after 30 days
Remove windows 10 after 30 days









remove windows 10 after 30 days

This is if the current item is not a folder.Ĭontrol: Condition: To check if the last modified of the current item is older than 'X' days (I am doing it for 15 days). I am using the root folder in this action.Ĭontrol: Apply to each: to iterate over each list item returned from the above action.Ĭontrol: Condition 2: To check if the current item is a Folder. Initially the value for this variable is set to 0 (mandatory) and will be incremented every time a folder is found in the list returned.Ĭontrol: Do Until: This control is defined to work until the number of files returned from the List files in a folder action is equal to the number of Folders encountered.Īction: List files in a Folder: Select the folder you want to perform these actions on. Initially the value for this variable is set to 100 (It is just a temporary value can be set to any integer other than 0)Īction: Initialize Variable 2: Initialize an integer type temporary variable to store the count of folders returned from the List Files from a Folder action. Trigger: Recurrence: I am using the recurrence trigger to trigger the flow everyday at 8 AM.Īction: Initialize Variable: Initialize an integer type temporary variable to store the number of files returned from the List Files from a Folder action. Lastly, all the files that were moved to the temporary folder will all be restored to the base folder. Note that we are doing this just for files in a folder not folders inside a folder. Now keep doing this until there are no more files left in the folder. If the file is older than ‘X’ days, delete it and if not, move it to a temporary folder. So here’s the high level architecture of this flow: List Files from a folder and check the modified date.

remove windows 10 after 30 days remove windows 10 after 30 days

There is no way (pagination settings are not working either) to get more than 20 items. The catch here is, the List Folder action on OneDrive gets you 20 items only. 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. In this article, I will show you how to setup the flow configuration to delete files older than ‘X’ days from OneDrive.











Remove windows 10 after 30 days