func DeleteWebhook(w http.ResponseWriter, req *http.Request) {
	wh, err := hasWebhookAccess(w, req)
	if err != nil {
		return
	}

	repo := container.Instance.GetWebhookRepo()
	_ = repo.Remove(*wh)

	_ = dispatcher.DispatchWebhookDelete(wh.Account, *wh)

	// All is well
	_ = httputils.JSONOut(w, http.StatusNoContent, nil)
}
// DeleteWebhook will remove a webhook
DeleteWebhook will remove a webhook
// DeleteWebhook will remove a webhook
func DeleteWebhook(w http.ResponseWriter, req *http.Request) {
	wh, err := hasWebhookAccess(w, req)
	if err != nil {
		return
	}
	repo := container.Instance.GetWebhookRepo()
	_ = repo.Remove(*wh)
	_ = dispatcher.DispatchWebhookDelete(wh.Account, *wh)
	_ = httputils.JSONOut(w, http.StatusNoContent, nil)
}
func DeleteWebhook ( w http . ResponseWriter , req * http . Request ) { wh , err := hasWebhookAccess ( w , req ) if err != nil { return } repo := container . Instance . GetWebhookRepo ( ) _ = repo . Remove ( * wh ) _ = dispatcher . DispatchWebhookDelete ( wh . Account , * wh ) _ = httputils . JSONOut ( w , http . StatusNoContent , nil ) }
DeleteWebhook will remove a webhook
DeleteWebhook will remove a webhook
// All is well