> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Long Term • AI Agent SDK

> delete_long_term: Delete a specific long-term memory by ID.

# delete\_long\_term

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Memory**](../classes/Memory) class in the [**memory**](../modules/memory) module.

Delete a specific long-term memory by ID.

Works across all backends: SQLite, ChromaDB, Mem0, and MongoDB.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def delete_long_term(memory_id: str) -> bool
```

## Parameters

<ParamField query="memory_id" type="str" required={true}>
  The unique ID of the memory to delete
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if memory was found and deleted, False otherwise
</ResponseField>

## Uses

* `sqlite3.connect`
* `conn.execute`
* `conn.commit`
* `conn.close`
* `delete`
* `delete_one`

## Used By

* [`Memory.delete_memory`](../functions/Memory-delete_memory)
* [`Memory.delete_memories_matching`](../functions/Memory-delete_memories_matching)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/memory.py#L1113">
  `praisonaiagents/memory/memory.py` at line 1113
</Card>
