delete_ref_doc(ref_doc_id: str, delete_from_docstore: bool = False, **delete_kwargs: Any) -> None
documents = SimpleDirectoryReader( input_dir="/content/handbook-bge-embeddings/docs" ).load_data() vector_index = VectorStoreIndex.from_documents(documents)
nodes = parser.get_nodes_from_documents(documents2) vector_index.insert_nodes(nodes)
documents = SimpleDirectoryReader("./data", filename_as_id=True).load_data()
vector_stor.add(nodes)
and this method returns the IDs of the nodes inserted for later removaldetele_ref_doc
deletes by input document ID