code: def remove_network_profile(self, obj, params):
          
  
          network_id = -1
          profiles = self.network_profiles(obj)
  
          for profile in profiles:
              if profile == params:
                  network_id = profile.id
  
          if network_id != -1:
              self._send_cmd_to_wpas(obj['name'],
                  'REMOVE_NETWORK {}'.format(network_id))
docs: Remove the specified AP profiles