Delete Webhooks programmatically
# help-with-umbraco
a
Hi Is it possible to delete Webhooks programmatically, webhooks table is not shown in UI due to client error, Thanks ( ubmbraco 13)
r
Hey @abs59il! Yep, you could do it through code by injecting the
IWebhooksService
somewhere and running code to delete entries
There's a
GetAllAsync()
call that would get you each entry, or
GetByAliasAsync()
one that lets you get it by name. Once you've got a reference to the webhook, you could delete with
DeleteAsync
a
Thank you , that was very helpful 👍
5 Views