I am trying to automate the replacement of a pdf file in a SharePoint document library. I have a flow that converts the original Word file and correctly saves it as a pdf (GSTB1.pdf). Now I have a new version I want to replace it with - and keep the name.

I did not see a way to "Replace" if the file if it already existed, so I was trying to save it first as a *.doc file, delete the existing *.pdf, then convert the *.doc to *.pdf. This is where I am stuck.

The first step does create the *.doc file, but the "Delete file 3" action fails. I expect it is the "identifier" that is wrong, but I don't know how to find the identifier for the existing pdf file.

What am I missing? Thanks