def server_del_user(username):
 bash(('userdel -r -f %s' % username))
 logger.debug(('rm -f %s/%s_*.pem' % (os.path.join(KEY_DIR, 'user'), username)))
 bash(('rm -f %s/%s_*.pem' % (os.path.join(KEY_DIR, 'user'), username)))
 bash(('rm -f %s/%s.pem*' % (os.path.join(KEY_DIR, 'user'), username)))

def server_del_user ( username ) : bash ( ( 'userdel -r -f %s' % username ) ) logger . debug ( ( 'rm -f %s/%s_*.pem' % ( os . path . join ( KEY_DIR , 'user' ) , username ) ) ) bash ( ( 'rm -f %s/%s_*.pem' % ( os . path . join ( KEY_DIR , 'user' ) , username ) ) ) bash ( ( 'rm -f %s/%s.pem*' % ( os . path . join ( KEY_DIR , 'user' ) , username ) ) )
delete a user from jumpserver linux system .