Files
pocketpaw/docs/api/delete-memory-entry.mdx
Rohit Kushwaha 4bb7313829 feat: move docs into monorepo, add deploy workflow
Consolidate documentation from the separate pocketpaw-web repo into the
main pocketpaw repo. This keeps docs and code in sync so PRs can update
both atomically.

- Remove docs/ from .gitignore
- Remove docs' own .git (was pocketpaw/pocketpaw-web)
- Add .github/workflows/deploy-docs.yml (builds from docs/ subdirectory)
- Track all 120+ MDX pages, config, landing page, and public assets

The separate pocketpaw-web repo can now be archived.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 13:12:04 +05:30

86 lines
2.0 KiB
Plaintext

---
title: Delete Memory Entry
description: "Delete a specific long-term memory entry from PocketPaw's memory store. Use this to remove outdated or incorrect facts that the auto-learn system extracted from conversations."
api: DELETE /api/memory/long_term/{entry_id}
baseUrl: http://localhost:8000
layout: '@/layouts/APIEndpointLayout.astro'
auth: bearer
section: API Reference
ogType: article
keywords: ["delete memory", "remove fact", "memory management"]
tags: ["api", "memory"]
---
## Overview
Permanently deletes a long-term memory entry. This is useful for removing outdated or incorrect learned facts.
## Parameters
<ParamTable type="path">
<Param name="entry_id" type="string" required>
The unique identifier of the memory entry to delete.
</Param>
</ParamTable>
## Response
<ResponseField name="ok" type="boolean">`true` on successful deletion</ResponseField>
## Error Responses
| Status | Description |
|--------|-------------|
| 404 | Memory entry not found |
<RequestExample>
<Tabs items={["cURL", "JavaScript", "Python"]}>
<Tab title="cURL">
```bash
curl -X DELETE "http://localhost:8000/api/memory/long_term/mem_001" \
-H "Authorization: Bearer <token>"
```
</Tab>
<Tab title="JavaScript">
```javascript
const response = await fetch("http://localhost:8000/api/memory/long_term/mem_001", {
method: "DELETE",
headers: { "Authorization": "Bearer <token>" }
});
const data = await response.json();
console.log(data);
```
</Tab>
<Tab title="Python">
```python
import requests
response = requests.delete(
"http://localhost:8000/api/memory/long_term/mem_001",
headers={"Authorization": "Bearer <token>"}
)
print(response.json())
```
</Tab>
</Tabs>
</RequestExample>
<ResponseExample>
<Tabs items={["200", "404"]}>
<Tab title="200">
```json
{
"ok": true
}
```
</Tab>
<Tab title="404">
```json
{
"detail": "Memory entry not found"
}
```
</Tab>
</Tabs>
</ResponseExample>