Varun Joshi

    Varun Joshi

    1 year ago
    Hi Prefecters, does anyone know the command to delete a flow? Or can it be done only using the UI?
    ale

    ale

    1 year ago
    You can delete a flow from the UI or using the corresponding GraphQL mutation. Check the Interactive API page to see the available mutations
    Varun Joshi

    Varun Joshi

    1 year ago
    Is it possible for you to provide me with a link?
    Varun Joshi

    Varun Joshi

    1 year ago
    Do you have a sample mutation GQL of deleting a flow? @ale
    ale

    ale

    1 year ago
    mutation {
      delete_flow(input: {flow_id: "<your flow ID>"}) {
        success,
        error
      }
    }
    Varun Joshi

    Varun Joshi

    1 year ago
    Awesome man!! Thank you so much!
    Jeremiah

    Jeremiah

    1 year ago
    “Prefecters” I like it
    Varun Joshi

    Varun Joshi

    1 year ago
    @ale, there's no way we can do this for multiple flow ids right?
    ale

    ale

    1 year ago
    Nope
    Michael Adkins

    Michael Adkins

    1 year ago
    (not in a single query, you can query for flow ids then loop over them)
    Generally we don't allow deleting multiple objects in a single mutation because it is harder to manage failures i.e. what if the API errors in the middle of the list you've sent
    Varun Joshi

    Varun Joshi

    1 year ago
    Okay, where would I get the resources to master GQL for prefect? I'm very new to this
    Michael Adkins

    Michael Adkins

    1 year ago
    There's also an interactive graphql API in the UI so you can test things out
    Varun Joshi

    Varun Joshi

    1 year ago
    Thanks @ale and @Michael Adkins!
    ale

    ale

    1 year ago
    You’re welcome @Varun Joshi 😒imple_smile: