1、切换到root用户
2、su - gitlab-psql
3、查询数据库,查询项目下所有的hooks
echo 'select id from web_hooks where project_id=项目ID(页面可以看到);' |psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
4.使用curl删除webhooks
curl -H "Private-Token: eLGCf_66TtmSxzyPzdrn" -X DELETE http://gitlab地址/api/v4/projects/项目id/hooks/{第3步查出来的hookId}