def METHOD_NAME():
    subscribers = GitWebhookSubscriber.query.filter_by(status='active').all()
    for subscriber in subscribers:
        repo = subscriber.repo
        api = create_git_api(repo.host, repo.owner, repo.name,
                             subscriber.webhook.branch, subscriber.user_id)
        try:
            api.ping_webhook(subscriber.webhook.external_id)
        except GitObjectNotFound:
            subscriber.status = 'deleted'
            db.session.commit()