For this requirement, I provide a sample of my logic app below for your reference:
1. Add a "Create a pipeline run" action and initialize a variable named status
(set its value as "InProgerss").
2. Then add a "Until" action, set the break condition as status
is equal to "Succeeded". Add a "Get a pipeline run" action and set the variable status
as the value of Status
comes from "Get a pipeline run" in the "Until" action. Shown as below screenshot:
3. After that, run your logic app. The steps will run after the "Until" action(also after your pipeline complete).
By the way:
You can also do it in Data Factory, you can delete the data after completion. Please refer to this document.