Hello all! Is there a way to delete existing Cloud...
# prefect-community
k
Hello all! Is there a way to delete existing Cloud Hook?
z
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
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
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
Success! Thanks ๐Ÿ™‚
๐ŸŽ‰ 2
z
Awesome, any time!