// be sure geomNode is inside this RTree
Node indexNode = findLeafContainingGeometryNode(geomNode, throwExceptionIfNotFound);
if (indexNode == null) return;
// remove the entry
final Relationship geometryRtreeReference = geomNode.getSingleRelationship(RTreeRelationshipTypes.RTREE_REFERENCE, Direction.INCOMING);
if (geometryRtreeReference != null) {
geometryRtreeReference.delete();
}
if (deleteGeomNode) deleteNode(geomNode);
// reorganize the tree if needed
if (countChildren(indexNode, RTreeRelationshipTypes.RTREE_REFERENCE) == 0) {