code: public GVRComponent detachComponent(long type) {
          NativeSceneObject.detachComponent(getNative(), type);
          synchronized (mComponents) {
              GVRComponent component = mComponents.remove(type);
              if (component != null) {
                  component.setOwnerObject(null);
              }
              return component;
          }
      }
docs: Detach the component of the specified type from this scene object.
  
  Each scene object has a list of components. Only one component
  of a particular type can be attached. Components are detached based on their type.
  
  @return GVRComponent detached or null if component not found
  @param type  type of component to detach
  @see GVRSceneObject#attachComponent(GVRComponent)