()
Remove any data stored about users from blocked domains and email domains
    from Hubspot in case it somehow got there.
    :return:
Remove any data stored about users from blocked domains and email domains
    from Hubspot in case it somehow got there.
    :return:
Remove any data stored about users from blocked domains and email domains from Hubspot in case it somehow got there . : return :
def cleanup_blocked_hubspot_contacts():
    """
    Remove any data stored about users from blocked domains and email domains
    from Hubspot in case it somehow got there.
    :return:
    """
    if not HUBSPOT_ENABLED:
        return

    time_started = datetime.utcnow()

    remove_blocked_domain_contacts_from_hubspot()
    remove_blocked_domain_invited_users_from_hubspot()

    task_time = datetime.utcnow() - time_started
    metrics_gauge(
        'commcare.hubspot.runtimes.cleanup_blocked_hubspot_contacts',
        task_time.seconds,
        multiprocess_mode=MPM_LIVESUM
    )
def cleanup_blocked_hubspot_contacts ( ) : if not HUBSPOT_ENABLED : return time_started = datetime . utcnow ( ) remove_blocked_domain_contacts_from_hubspot ( ) remove_blocked_domain_invited_users_from_hubspot ( ) task_time = datetime . utcnow ( ) - time_started metrics_gauge ( 'commcare.hubspot.runtimes.cleanup_blocked_hubspot_contacts' , task_time . seconds , multiprocess_mode = MPM_LIVESUM )