# Webhook Won't Delete: CPU Rails to 100% for 30 Seconds, then 502 Error

**URL:** <https://meta.discourse.org/t/webhook-wont-delete-cpu-rails-to-100-for-30-seconds-then-502-error/72958>\
**Category:** Bug\
**Created:** [Outubro 28, 2017, 1:53am UTC](https://meta.discourse.org/t/webhook-wont-delete-cpu-rails-to-100-for-30-seconds-then-502-error/72958 "2017-10-28T01:53:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [Outubro 29, 2017, 9:17am UTC](https://meta.discourse.org/t/webhook-wont-delete-cpu-rails-to-100-for-30-seconds-then-502-error/72958/2 "2017-10-29T09:17:30Z")

</div>

Have you tried deleting that webhook from the rails console?

Something like

```plaintext
# ssh into your server
cd /var/discourse
./launcher enter app
rails c
WebHook.find(<id>).destroy

```

With “`<id>`” the id of the webhook which you can get when editing the details of the webhook.

- URL = `https://meta.discourse.org/admin/api/web_hooks/3`
- ID = `3`

---

_[View the full topic](https://meta.discourse.org/t/webhook-wont-delete-cpu-rails-to-100-for-30-seconds-then-502-error/72958)._
