what is the graphql query to get list of flow run ...
# ask-community
p
what is the graphql query to get list of flow run ids for a given flow name ?
k
Something like this:
Copy code
query {
	flow (where: {name: {_eq: "distributed"}}){
		id
    name
    project {
      name
    }
    flow_runs{
      id
      name
    }
  }
}
p
awesome, works perfectly 🙂 , I needed to get list of flow run and delete older ones
Copy code
mutation {
  delete_flow_run(input: {flow_run_id: "9b6601b8-e488-44d2-b36f-e5f42ae6e8d1"}) {
    success
    error
  }
}