code: func (s *SyncState) RemoveLocalValue(addr addrs.AbsLocalValue) {
  	s.lock.Lock()
  	defer s.lock.Unlock()
  
  	ms := s.state.Module(addr.Module)
  	if ms == nil {
  		return
  	}
  	ms.RemoveLocalValue(addr.LocalValue.Name)
  	s.maybePruneModule(addr.Module)
  }
docs: // RemoveLocalValue removes the stored value for the local value with the
  // given address.
  //
  // If this results in its containing module being empty, the module will be
  // pruned from the state as a side-effect.