Permanently deletes a memory belonging to a specific member.
This endpoint requires admin privileges.
Bearer token obtained from the authenticate endpoint. The authenticated user must be an admin.
UUID of the memory to delete.
ID of the member who owns this memory.
Response
Confirmation message: "User memory deleted successfully".
curl -X DELETE "https://api.trellis.sh/v1/admin/user-memories/a1b2c3d4-e5f6-7890-abcd-ef1234567890?member_id=member_01HX..." \
-H "Authorization: Bearer YOUR_TOKEN"
import requests
memory_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
response = requests.delete(
f"https://api.trellis.sh/v1/admin/user-memories/{memory_id}",
headers={"Authorization": "Bearer YOUR_TOKEN"},
params={"member_id": "member_01HX..."},
)
const memoryId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";
const memberId = "member_01HX...";
await fetch(
`https://api.trellis.sh/v1/admin/user-memories/${memoryId}?member_id=${memberId}`,
{
method: "DELETE",
headers: { Authorization: "Bearer YOUR_TOKEN" },
}
);
{
"message": "User memory deleted successfully"
}
{
"detail": "Missing Authorization header"
}
{
"detail": "Admin privileges required"
}
{
"detail": "User memory not found"
}