Hi,
I apologise if this is already here somewhere and I missed it. I am relatively new to Power Automate, as in I have made a few basic ones here and there but not a lot of complexity.
Anyway the basic concept is to have a Microsoft Form that employees can enter some basic details to, including added attachments. On submission this triggers a flow that copies the data to a SharePoint List, including the attachments. At its base level this is all working. However I have two issues.
The first is I have two dates on the form and I cant work out how to test if they arent empty before I do a Convert Date Time on them. I found a couple of examples using '@empty' but I just couldn't make it work. For now I get around this using the Configure Run After option. I just cant quite work out how to handle them being left blank at the moment?
The second is once the attachments are uploaded I want to delete them from OneDrive. This is what I have so far:

This is the error I am getting.
"status":400,"message":"The file id '/Apps/Microsoft Forms/Program Capture System/Question/shutterstock_1049916332_xxxx.jpg' is not valid.","source":"api.connectorp.svc.ms"
Any help, even just a link where to look would be greatly appreciated.