# Delete webhook from deleted repository

**URL:** <https://forum.gitea.com/t/delete-webhook-from-deleted-repository/2374>\
**Category:** General\
**Created:** [August 3, 2020, 2:52pm UTC](https://forum.gitea.com/t/delete-webhook-from-deleted-repository/2374 "2020-08-03T14:52:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stu1811](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@stu1811](https://forum.gitea.com/u/stu1811)\
**Post date:** [August 3, 2020, 2:52pm UTC](https://forum.gitea.com/t/delete-webhook-from-deleted-repository/2374/1 "2020-08-03T14:52:19Z")

</div>

In my gitea log file I see an old webhook is failing and want to delete it. I went through all our repos and cannot find the hook. I went into the sql db and did `select * from webhooks;`. First two rows are id `4` and `7` with a repo\_id of `0`. I then did a `select * from repositories;`. There isn’t a repo with an id of `0`. Is it safe to delete the two rows from the webhooks table? I assume stop gitea, delete rows, restart gitea.

Edit: Alternatively could I change the repo id to something valid and then delete the attachment?
