Permanently deletes a memory belonging to the authenticated user.
Bearer token obtained from the authenticate endpoint.
UUID of the memory to delete.
Response
Confirmation message: "User memory deleted successfully".
curl -X DELETE https://api.trellis.sh/v1/user-memories/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer YOUR_TOKEN"
import requests
memory_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
response = requests.delete(
f"https://api.trellis.sh/v1/user-memories/{memory_id}",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
const memoryId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";
await fetch(`https://api.trellis.sh/v1/user-memories/${memoryId}`, {
method: "DELETE",
headers: { Authorization: "Bearer YOUR_TOKEN" },
});
{
"message": "User memory deleted successfully"
}
{
"detail": "Missing Authorization header"
}
{
"detail": "User memory not found"
}