def del_password(name):
 cmd = 'pw user mod {0} -w none'.format(name)
 __salt__['cmd.run'](cmd, python_shell=False, output_loglevel='quiet')
 uinfo = info(name)
 return (not uinfo['passwd'])

def del_password ( name ) : cmd = 'pw user mod {0} -w none' . format ( name ) __salt__ [ 'cmd.run' ] ( cmd , python_shell = False , output_loglevel = 'quiet' ) uinfo = info ( name ) return ( not uinfo [ 'passwd' ] )
deletes the account password .