Use the Call instruction with the pxDeleteRunById activity to delete an external data flow run that is in the New, Completed, Failed, or Stopped state.
Create an instance of the Activity rule by clicking Records Explorer > Technical > Activity.
In the activity steps, enter the Call pxDeleteRunById method:
Add the first step:
Method: Page-New
Step page: runOptions
Add the second step:
Method: Call pxDeleteRunById
Step page: runOptions
In the second step, click the arrow to the left of the Method and specify the runID parameter.
You can find the run ID on the Data Flows landing page.
Click Save.