Hi @Anonymous,
Could you please share a screenshot of your flow's configuration?
Do you want to delete the files in your SharePoint library folder when they are 30 days old?
I have made a test on my side and please take a try with the following workaround:
- Add a Recurrence trigger, Interval set to 1 and Frequency set to Day.
- Add a "Get files (properties only)" action, specify Site Address and the Library Name set to Reporting. On your side, the Library Name set to documents.
- Add a "Apply to each" action, input parameter set to output of "Get files (properties only)" action.
- Within "Apply to each" action, add a condition, left input box set to Folder path dynamic content of the "Get files (properties only)" action, right input box set to Flow (On your side, right input box set to PDFs), within middle drop down, choose contains.
Within "If/yes" branch of Condition, add a "Condition 2", click "Edit in advanced mode", type the following formula:
@equals(formatDateTime(item()?['Created'], 'MM/dd/yyyy'), formatDateTime(addDays(utcNow(), -30), 'MM/dd/yyyy'))
Within "If/yes" branch of Condition 2, add a "Delete file" action, specify Site Address and the File Identifier field set to Identifier dynamic content of the "Get files (properties only)" action.
Image reference:

The flow works successfully as below:
Best regards,
Kris