def remove_container(container, force=False, v=False):
    client = _get_client()
    status = base_status.copy()
    status['id'] = container
    dcontainer = None
    try:
        dcontainer = _get_container_infos(container)['Id']
        if is_running(dcontainer):
            if not force:
                _invalid(status, id_=container, out=None,
                         comment=(
                             'Container {0} is running, '
                             'won\'t remove it').format(container))
                __salt__['mine.send']('dockerng.ps', verbose=True, all=True, host=True)
                return status
            else:
                kill(dcontainer)
        client.remove_container(dcontainer, v=v)
        try:
            _get_container_infos(dcontainer)
            _invalid(status,
                     comment='Container was not removed: {0}'.format(container))
        except Exception:
            status['status'] = True
            status['comment'] = 'Container {0} was removed'.format(container)
    except Exception:
        _invalid(status, id_=container, out=traceback.format_exc())
    __salt__['mine.send']('dockerng.ps', verbose=True, all=True, host=True)
    return status
Delete a range of serial numbers from the model.
dataset/ETHPy150Open saltstack/salt/salt/modules/dockerio.py/remove_container--crossover with--dataset/ETHPy150Open exosite/exoline/exoline/plugins/provision.py/Plugin.sn.delrange