I'm assuming you mean you want to delete files that have a modified date older than 45 days (were last modified more than 45 days ago). I'd actually use the SharePoint connectors for this as you can filter the data directly when retrieving them which is much more efficient. OneDrive is effectively a SharePoint site behind the scenes so you can use any of the SharePoint connectors with OneDrive.
IMPORTANT - since this is deleting files, I'd ensure it's returning the files you expect before adding the Delete file action. Once you've confirmed it's working as expected then you can add the Delete file connector. One way to do this is to add a Get file metadata instead of the Delete file and check the files being returned. Then when you are sure it's working as expected, remove the Get file metadata and add the Delete file.
See full flow below. I'll go into each of the actions.

Get files (properties only) retrieves files that are older than 45 days old.
Site Address is the URL of your OneDrive account. You can click on Custom value and paste the URL in.
Library Name is Documents which is your My Files library in OneDrive.
Included Nested Items is set to Yes.
Filter Query has two conditions:
- FSObjType eq 0 ensures it only returns files (without this it returns both files and folders).
- Modified lt '@{addDays(utcNow(), -45)}' ensures only files that have a modified date older than 45 days are returned.
FSObjType eq 0 and Modified lt '@{addDays(utcNow(), -45)}'

Apply to each iterates over all the files returned. Note that we don't need a condition within the loop as it's already filtered the files that we want to delete.

Delete file uses your OneDrive URL the same as your Get files. And uses the Identifier to get the current file.

Again, I'd ensure you build the flow to just return the files and check thoroughly that only the files you expect to see are being returned. Once you've confirmed it's working as expected then you can add the Delete file connector. One way to do this is to add a Get file metadata instead of the Delete file and check the files being returned. Then when you are sure it's working as expected, remove the Get file metadata and add the Delete file.
----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.