https://prefect.io logo
#prefect-community
Title
# prefect-community
k

Klemen Strojan

04/22/2020, 10:10 AM
Hello all! Is there a way to delete existing Cloud Hook?
z

Zachary Hughes

04/22/2020, 1:09 PM
Hi @Klemen Strojan! Once you've created your Cloud hook, you should be able to click on the dropdown button to see more options for your cloud hook. Once that's open, the trash icon on the right side should let you delete your hook!
k

Klemen Strojan

04/22/2020, 1:18 PM
Thanks for your reply @Zachary Hughes! Unfortunately, the flow I used the hook for is no longer visible on my UI - Iโ€™ve deleted the flow without deleting the hook. When I query cloud_hook table I can see the hook there, but I donโ€™t know how to write the mutation to delete it. Query:
Copy code
query {
  cloud_hook {
    active,
    config,
    created,
    id,
    name,
    states,
    tenant_id,
    type,
    updated,
    version_group_id
  }
}
z

Zachary Hughes

04/22/2020, 1:18 PM
Ah, I can help with that too! Give me just one sec to write an example for you. ๐Ÿ™‚
๐Ÿ‘ 1
The mutation below should do the trick. You'll want to sub our my cloud hook ID for your own.
Copy code
mutation {
  delete_cloud_hook(input: {cloud_hook_id: "dfbb9f85-9077-4a2c-9a7f-ed3ebb2012e9"}) {
    success
  }
}
๐Ÿ‘ 2
k

Klemen Strojan

04/22/2020, 1:26 PM
Success! Thanks ๐Ÿ™‚
๐ŸŽ‰ 2
z

Zachary Hughes

04/22/2020, 1:26 PM
Awesome, any time!