DELETE /api/memory/long_term/{entry_id} Bearer

Delete Memory Entry

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.

Overview

Permanently deletes a long-term memory entry. This is useful for removing outdated or incorrect learned facts.

Parameters

Path Parameters

entry_id required
string

The unique identifier of the memory entry to delete.

Response

ok boolean
true on successful deletion

Error Responses

StatusDescription
404Memory entry not found
Terminal window
curl -X DELETE "http://localhost:8000/api/memory/long_term/mem_001" \
-H "Authorization: Bearer <token>"
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);
import requests
response = requests.delete(
"http://localhost:8000/api/memory/long_term/mem_001",
headers={"Authorization": "Bearer <token>"}
)
print(response.json())
{
"ok": true
}
{
"detail": "Memory entry not found"
}
Request
curl -X DELETE "http://localhost:8000/api/memory/long_term/{entry_id}" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>"
const response = await fetch("http://localhost:8000/api/memory/long_term/{entry_id}", {
  method: "DELETE",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
},
});

const data = await response.json();
console.log(data);
import requests

response = requests.delete(
    "http://localhost:8000/api/memory/long_term/{entry_id}",
    headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)

print(response.json())
package main

import (
    "fmt"
    "net/http"
    "io"
)

func main() {
    req, _ := http.NewRequest("DELETE", "http://localhost:8000/api/memory/long_term/{entry_id}", nil)
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <token>")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
Response
Send a request to see the response