class_docstr: metadata collector for sphinx.environment.
code: def clear_doc(
      self, app: Sphinx, env: BuildEnvironment, docname: str
  ) -> None:
      env.metadata.pop(docname, None)
  
file_path: sphinx/sphinx/environment/collectors/metadata.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from sphinx.environment.collectors import EnvironmentCollector
label_desc: Use image node_id 1 for calling the MetadataCollector obj's underlying member method code with example usage: obj.clear_doc(app, env, docname) without return types