code: public void deleteNodeIndex(EntityMetadata entityMetadata, GraphDatabaseService graphDb, Node node)
      {
          if (!isNodeAutoIndexingEnabled(graphDb) && entityMetadata.isIndexable())
          {
              Index<Node> nodeIndex = graphDb.index().forNodes(entityMetadata.getIndexName());
              nodeIndex.remove(node);
          }
      }
docs: Deletes a {@link Node} from manually created index if auto-indexing is
  disabled
  
  @param entityMetadata
  @param graphDb
  @param node