code: func (s *SyncState) ForgetResourceInstanceAll(addr addrs.AbsResourceInstance) {
  	s.lock.Lock()
  	defer s.lock.Unlock()
  
  	ms := s.state.Module(addr.Module)
  	if ms == nil {
  		return
  	}
  	ms.ForgetResourceInstanceAll(addr.Resource)
  	s.maybePruneModule(addr.Module)
  }
docs: // ForgetResourceInstanceAll removes the record of all objects associated with
  // the specified resource instance, if present. If not present, this is a no-op.