Re: Flow - OneDrive - Delete files older than 30Days in Folder
Hi @Anonymous,
I modified the flow configuration, please check the following flow configuration.
First, use the action initialize variable, set Name as LastModified, Type as String.
Then the action List files in folder. Specify the folder from which you want to get files.
Then under Apply to each, add the action Set variable, select dynamic content Last Modified Time for the Value field.
Then use a Compose action to format the LastModified time. The code is:
formatDateTime(variables('LastModified'),'yyyy-MM-dd')
Then configure the Condition using code likes below:
@equals(outputs('Compose_2'),formatDateTime(adddays(utcnow(),-3),'yyyy-MM-dd'))
Under the If Yes branch, add the Delete file action, select dynamic content Id from the trigger.

Please try again with it on your side.
Best regards,
Mabel Mao