Hey Guys,
I copied this flow (https://powerusers.microsoft.com/t5/Using-Flows/Automatically-delete-files-in-Document-Library-after-X-days/td-p/70009) and had it working for a document library.
However I am trying to recreate this flow again on a different site and it runs sucessfully but is not deleting anything.
Ultimately I want to to delete any files older than 2 years in age (Date Created/Added/Uploaded to Site)
I am just trying to get it to delete after 1 day to verify it works before I change it to 730 days
I am using this:
@equals(formatDateTime(item()?['Created'], 'MM/dd/yyyy'), formatDateTime(addDays(utcNow(), -1), 'MM/dd/yyyy'))
Here is how my flow is layed out currently:


https://imgur.com/a/17gFUT3
https://imgur.com/a/46ZZaAU
Does it matter if the folder CGI which I am looking to delete the files in, is inside another folder?
company.sharepoint.com/shared documents/folder1/CGI
Any ideas why its not deleting the files in the CGI folder? They were all created/uploaded over a week ago.
Like I mentioned I have it working no issues on my other site but this one it doesn't seem to work.
Thanks.