

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.is_true(force):
        log.error('pw userdel does not support force-deleting user while user is logged in')
    cmd = ['pw', 'userdel']
    if remove:
        remove.append('-r')
    cmd.extend(['-n', name])
    return (__salt__['cmd.retcode'](cmd, python_shell=False) == 0)

dataset/ETHPy150Open saltstack/salt/salt/modules/pw_user.py delete/VarMisuse@53/151 `cmd`->`remove`