

def delete(name, remove=False, force=False):
    "\n    Remove a user from the minion\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.delete name remove=True force=True\n    "
    if salt.utils.contains_whitespace(name):
        raise SaltInvocationError('Username cannot contain whitespace')
    if (not info(name)):
        return True
    if force:
        log.warn('force option is unsupported on MacOS, ignoring')
    if force:
        __salt__['file.remove'](info(name)['home'])
    chgroups(name, ())
    return (_dscl(['/Users/{0}'.format(name)], ctype='delete')['retcode'] == 0)

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py delete/VarMisuse@68/163 `remove`->`force`