def delete_ref_doc(
        self, ref_doc_id: str, delete_from_docstore: bool = False, **delete_kwargs: Any
    ) -> None:
        """Delete a document and it's nodes by using ref_doc_id."""
Delete a document and it's nodes by using ref_doc_id.
llama-index-core/llama_index/core/indices/managed/base.py