def METHOD_NAME(self, repo):
    installation = self.get_installation(repo.integration_id, repo.organization_id)
    client = installation.get_client()
    try:
        client.delete_hook(repo.config["name"], repo.config["webhook_id"])
    except ApiError as exc:
        if exc.code == 404:
            return
        raise