def send_interactions_remove_msg(sim, interactions, immediate=False):
    logger.debug('send_interactions_remove_msg({}), immediate={}', sim.id,
                 immediate)
    msg = Sims_pb2.InteractionsRemove()
    if _build_interactions_remove_msg(sim, msg, interactions):
        logger.debug('    SENDING')
        add_message_if_selectable(sim, MSG_SIM_INTERACTIONS_REMOVE, msg,
                                  immediate)
    else:
        logger.debug('    NOT_SENDING')
def send_interactions_removeall_msg(sim, immediate=False):
    if sim is None:
        return
    logger.debug('send_interactions_removeall_msg({}, immediate={})', sim.id,
                 immediate)
    msg = Sims_pb2.InteractionsRemove()
    if _build_interactions_removeall_msg(sim, msg):
        logger.debug('    SENDING')
        add_message_if_selectable(sim, MSG_SIM_INTERACTIONS_REMOVE_ALL, msg,
                                  immediate)
    else:
        logger.debug('    NOT_SENDING')