Skip to content

Delete a flow #5500

Answered by zanieb
neumann-nico asked this question in Q&A
Mar 1, 2022 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

You can make a request to the GraphQL API

mutation {
  delete_flow(input: {flow_id: "..."}) {
    success
  }
}

e.g.

from prefect.client import Client

flow_id = "..."

client = Client()
client.graphql(
    """
    mutation {
    delete_flow(input: {flow_id: "%s"}) {
        success
    }
    }
    """ % flow_id
)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@lucascr91
Comment options

@mzayer-coveo
Comment options

@zanieb
Comment options

@KayJey-Krayen
Comment options

@zanieb
Comment options

Answer selected by neumann-nico
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants