class_docstr: Domain for citations.
class_docstr_tok: ["Domain","for","citations","."]
code: def clear_doc(self, docname: str) -> None:
      for key, (fn, _l, _lineno) in list(self.citations.items()):
          if fn == docname:
              del self.citations[key]
      for key, docnames in list(self.citation_refs.items()):
          if docnames == {docname}:
              del self.citation_refs[key]
          elif docname in docnames:
              docnames.remove(docname)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from sphinx.addnodes import pending_xref
  from sphinx.domains import Domain
  from sphinx.locale import __
  from sphinx.transforms import SphinxTransform
  from sphinx.util import logging
  from sphinx.util.nodes import copy_source_info, make_refnode
label_desc: Use image node_id 3 for calling the CitationDomain obj's underlying member method code with example usage: obj.clear_doc(docname) without return types