Force the minion to leave the swarm

    force
        Will force the minion/worker/manager to leave the swarm

    CLI Example:

    .. code-block:: bash

        salt '*' swarm.leave_swarm force=False

def leave_swarm(force=bool):
    '''
    Force the minion to leave the swarm

    force
        Will force the minion/worker/manager to leave the swarm

    CLI Example:

    .. code-block:: bash

        salt '*' swarm.leave_swarm force=False
    '''
    salt_return = {}
    __context__['client'].swarm.leave(force=force)
    output = __context__['server_name'] + ' has left the swarm'
    salt_return.update({'Comment': output})
    return salt_return