I have created a Word template where after I fill in fields in PowerApp, it uses Power Automate to generate a .docx and then convert to the pdf and those are created in Onedrive. Then it copies both of them to a Sharepoint shared folder. But it copies both the .pdf and the .docx. I want one of two things:
1) Either delete the .docx file before the .pdf is copied to the shared folder in Sharepoint,
or
2) Delete the .docx file after it and the .pdf are copied to the shared folder in Sharepoint.
I have two separate flows. One for the Word template, and the other to copy files between OneDrive for Business and SharePoint (which is triggered when a new file appears in a specific OneDrive folder).