parameters: (request, user=None)
return_statement: return result.DATA
docstring: Call PlayerAccount to unban the player
      
      Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
      via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
docstring_summary: Call PlayerAccount to unban the player
      
      Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
      via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
docstring_tokens: Call PlayerAccount to unban the player Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player via a data request to have a mapping between the user name and the cognition identity ( for get_id_from_user )
function: def delete(request, user=None):
      """
      Call PlayerAccount to unban the player
      
      Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
      via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
      """
      print("Handling player unban for {}".format(user))
      interface_url = cgf_lambda_settings.get_service_url("CloudGemPlayerAccount_banplayer_1_0_0")
      if not interface_url:
          return {
              "status": ban_handler.lift_ban(user)
          }
  
      service_client = cgf_service_client.for_url(interface_url, verbose=True, session=boto3._get_default_session())
      navigation = service_client.navigate('playerban')
      cog_id = identity_validator.get_id_from_user(user)
      if cog_id is None:
          raise errors.ClientError(UNKNOWN_PLAYER_ERROR_MESSAGE.format(user))
  
      result = navigation.DELETE(
          {"id": cog_id}
      )
      return result.DATA
function_tokens: def delete ( request , user = None ) : print ( "Handling player unban for {}" . format ( user ) ) interface_url = cgf_lambda_settings . get_service_url ( "CloudGemPlayerAccount_banplayer_1_0_0" ) if not interface_url : return { "status" : ban_handler . lift_ban ( user ) } service_client = cgf_service_client . for_url ( interface_url , verbose = True , session = boto3 . _get_default_session ( ) ) navigation = service_client . navigate ( 'playerban' ) cog_id = identity_validator . get_id_from_user ( user ) if cog_id is None : raise errors . ClientError ( UNKNOWN_PLAYER_ERROR_MESSAGE . format ( user ) ) result = navigation . DELETE ( { "id" : cog_id } ) return result . DATA