delete() — langchain Function Reference
Architecture documentation for the delete() function in entity.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bcb05110_0d1a_dff9_9d77_188d5452df3f["delete()"] 40387f29_12a3_f291_fc18_4ce17ac91db3["SQLiteEntityStore"] bcb05110_0d1a_dff9_9d77_188d5452df3f -->|defined in| 40387f29_12a3_f291_fc18_4ce17ac91db3 bb3de870_d9a2_b2ef_b746_608a90b30ec8["_execute_query()"] bcb05110_0d1a_dff9_9d77_188d5452df3f -->|calls| bb3de870_d9a2_b2ef_b746_608a90b30ec8 style bcb05110_0d1a_dff9_9d77_188d5452df3f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/memory/entity.py lines 434–438
def delete(self, key: str) -> None:
"""Deletes a key-value pair, safely quoting the table name."""
# Ignore S608 since we validate for malicious table/session names in `__init__`
query = f'DELETE FROM "{self.full_table_name}" WHERE key = ?' # noqa: S608
self._execute_query(query, (key,))
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does delete() do?
delete() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/memory/entity.py.
Where is delete() defined?
delete() is defined in libs/langchain/langchain_classic/memory/entity.py at line 434.
What does delete() call?
delete() calls 1 function(s): _execute_query.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free