def delete_user(user_name, region=None, key=None, keyid=None, profile=None):
 if (not get_user(user_name, region, key, keyid, profile)):
  return True
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  conn.delete_user(user_name)
  log.info('Deleted user : {0} .'.format(user_name))
  return True
 except boto.exception.BotoServerError as e:
  log.debug(e)
  log.error('Failed to delete user {0}'.format(user_name))
  return str(e)

def delete_user ( user_name , region = None , key = None , keyid = None , profile = None ) : if ( not get_user ( user_name , region , key , keyid , profile ) ) : return True conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : conn . delete_user ( user_name ) log . info ( 'Deleted user : {0} .' . format ( user_name ) ) return True except boto . exception . BotoServerError as e : log . debug ( e ) log . error ( 'Failed to delete user {0}' . format ( user_name ) ) return str ( e )
deletes a user .