import logging


def batch_delete(service, message_ids, user_id, **kwargs):
    """Deletes multiple messages given the message_ids"""
    try:
        service.users().messages().batchDelete(userId = user_id, body = message_ids).execute()
        return True
    except Exception as ex:
        logging.exception('BatchFilter Exception: %s' % ex)
    return False