Madhup Sukoon
03/21/2022, 4:28 AMprefect get flows), and
2. De-register some of these flows through python.Anna Geller
query {
  flow {
    flow_group_id
    name
    project {
      name
    }
    version
  }
}
 # 2 To archive (aka deregister) some flows, use this mutation
mutation {
  archive_flow(input: {flow_id: "0f94bd12-87d7-4fb6-b3a1-cebb510db8d3"}) {
    success
  }
}
to use those in Python:
from prefect import Client
client = Client()
client.graphql(your_query_or_mutation)
A similar discussion for reference https://discourse.prefect.io/t/how-to-archive-decommission-a-flow-we-no-longer-use-without-losing-the-run-history/364Madhup Sukoon
03/21/2022, 10:04 AM