I have developed a flow that uses the trigger "When a file is modified or created" in a document library and it has an approval further down the flow that runs when a certain value in a custom meta data column is selected. During testing I've found that if you delete a file after an approval has been started the approval still shows in the approvers 'approval panel' and it acts as if the document still exists. Is this functionality intended & is there any way to delete the approval if the associated document is deleted?
Althought someone shouldn't delete a file once it has been sent from approval I am not ultimately in control of other users actions and it is a possibility that they dont follow the correct procedure.