def delete_ref_doc(
        self, ref_doc_id: str, delete_from_docstore: bool = False, **delete_kwargs: Any
    ) -> None:
        """Deletes a document and its nodes by using ref_doc_id."""
        self._index.delete_ref_doc(ref_doc_id=ref_doc_id, **delete_kwargs)
Deletes a document and its nodes by using ref_doc_id.
llama-index-integrations/indices/llama-index-indices-managed-google/llama_index/indices/managed/google/base.py