Delete Short Term • AI Agent SDK

delete_short_term: Delete a specific short-term memory by ID.

delete_short_term

Method

</div>

This is a method of the Memory class in the memory module.

Delete a specific short-term memory by ID.

Signature

python
def delete_short_term(memory_id: str) -> bool

Parameters

ParamField str

The unique ID of the memory to delete

Returns

ResponseField bool

True if memory was found and deleted, False otherwise

Uses

  • delete_memory
  • conn.execute
  • conn.commit
  • delete_one

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1481