code: func (r *Registry) Remove(item types.ManagedObjectReference) {
  	r.applyHandlers(func(o RegisterObject) {
  		o.RemoveObject(item)
  	})
  
  	r.m.Lock()
  	delete(r.objects, item)
  	delete(r.handlers, item)
  	delete(r.locks, item)
  	r.m.Unlock()
  }
docs: // Remove removes an object from the Registry.