def delete(self, ref_doc_id: str, **delete_kwargs: Any) -> None:
        """
        Delete nodes using with ref_doc_id.

        Args:
            ref_doc_id (str): The doc_id of the document to delete.

        """
        _ddb_query = f"""
            DELETE FROM {self.table_name}
            WHERE json_extract_string(metadata_, '$.ref_doc_id') = ?;
            """
        if self.database_name == ":memory:":
            self._conn.execute(_ddb_query, [ref_doc_id])
        elif self._database_path is not None:
            with DuckDBLocalContext(self._database_path) as _conn:
                _conn.execute(_ddb_query, [ref_doc_id])

        Delete nodes using with ref_doc_id.

        Args:
            ref_doc_id (str): The doc_id of the document to delete.

        
llama-index-integrations/vector_stores/llama-index-vector-stores-duckdb/llama_index/vector_stores/duckdb/base.py