--- 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 The unique identifier of the memory entry to delete. ## Response `true` on successful deletion ## Error Responses | Status | Description | |--------|-------------| | 404 | Memory entry not found | ```bash curl -X DELETE "http://localhost:8000/api/memory/long_term/mem_001" \ -H "Authorization: Bearer " ``` ```javascript const response = await fetch("http://localhost:8000/api/memory/long_term/mem_001", { method: "DELETE", headers: { "Authorization": "Bearer " } }); const data = await response.json(); console.log(data); ``` ```python import requests response = requests.delete( "http://localhost:8000/api/memory/long_term/mem_001", headers={"Authorization": "Bearer "} ) print(response.json()) ``` ```json { "ok": true } ``` ```json { "detail": "Memory entry not found" } ```