Delete webhook from deleted repository

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?