Home / Function/ mdelete() — langchain Function Reference

mdelete() — langchain Function Reference

Architecture documentation for the mdelete() function in file_system.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a12d1084_c2b3_8eeb_5588_395855d5b285["mdelete()"]
  26189a3b_3a87_0b57_a7a3_341b06895b61["LocalFileStore"]
  a12d1084_c2b3_8eeb_5588_395855d5b285 -->|defined in| 26189a3b_3a87_0b57_a7a3_341b06895b61
  60db82b3_b672_7a32_40bd_32b87d30a271["_get_full_path()"]
  a12d1084_c2b3_8eeb_5588_395855d5b285 -->|calls| 60db82b3_b672_7a32_40bd_32b87d30a271
  style a12d1084_c2b3_8eeb_5588_395855d5b285 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/storage/file_system.py lines 140–149

    def mdelete(self, keys: Sequence[str]) -> None:
        """Delete the given keys and their associated values.

        Args:
            keys: A sequence of keys to delete.
        """
        for key in keys:
            full_path = self._get_full_path(key)
            if full_path.exists():
                full_path.unlink()

Domain

Subdomains

Frequently Asked Questions

What does mdelete() do?
mdelete() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/storage/file_system.py.
Where is mdelete() defined?
mdelete() is defined in libs/langchain/langchain_classic/storage/file_system.py at line 140.
What does mdelete() call?
mdelete() calls 1 function(s): _get_full_path.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free