code: func (s *SyncState) RemoveModule(addr addrs.ModuleInstance) {
  	s.lock.Lock()
  	defer s.lock.Unlock()
  
  	s.state.RemoveModule(addr)
  }
docs: // RemoveModule removes the entire state for the given module, taking with
  // it any resources associated with the module. This should generally be
  // called only for modules whose resources have all been destroyed, but
  // that is not enforced by this method.