I am trying to build a flow to delete all files in a SharePoint library older than a few days.
This seemed simple, but I am having trouble with a get file properties inside the "apply to each" loop. I want to check the created date for the current file and test, and do this over and over for each file.
Here is my flow =

When trying to save, I get an error =
Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'id' validation failed in workflow operation 'Current_file_properties': The parameter with value '"@items('Apply_to_each_2')"' in path 'id' with type/format 'Object' is not convertible to type/format 'Integer/int64'.'.
What am I doing wrong?
And also, am I on the right track with the condition control and my test of "created date" is less than "past time"? Or will these not compare the way I think they will?