-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Describe the bug
Use Delete method in your web docs: https://www.powermem.ai/docs/api/api_server/#delete-memory returns false response body with error code 404, though I use same user-id and query only once. Also, powermem delete specific data indeed.
Environment
config on .env:
# PowerMem Configuration
# This is a minimal development configuration
# =============================================================================
# 1. Database Configuration (Required)
# =============================================================================
DATABASE_PROVIDER=sqlite
SQLITE_PATH=./data/powermem_dev.db
SQLITE_ENABLE_WAL=true
SQLITE_COLLECTION=memories
# =============================================================================
# 2. LLM Configuration (Required)
# =============================================================================
LLM_PROVIDER=qwen
LLM_API_KEY=(sk KEY)
LLM_MODEL=qwen3-max
# =============================================================================
# 3. Embedding Configuration (Required)
# =============================================================================
EMBEDDING_PROVIDER=qwen
EMBEDDING_API_KEY=(sk KEY)
EMBEDDING_MODEL=text-embedding-v4
EMBEDDING_DIMS=1536
# =============================================================================
# 4. PowerMem HTTP API Server Configuration
# =============================================================================
# Server settings
POWERMEM_SERVER_HOST=0.0.0.0
POWERMEM_SERVER_PORT=8000
POWERMEM_SERVER_WORKERS=4
POWERMEM_SERVER_RELOAD=false
# Authentication settings (DISABLED for development)
POWERMEM_SERVER_AUTH_ENABLED=false
POWERMEM_SERVER_API_KEYS=
# Rate limiting settings
POWERMEM_SERVER_RATE_LIMIT_ENABLED=true
POWERMEM_SERVER_RATE_LIMIT_PER_MINUTE=100
# Logging settings
POWERMEM_SERVER_LOG_LEVEL=INFO
POWERMEM_SERVER_LOG_FORMAT=json
POWERMEM_SERVER_LOG_FILE=server.log
# CORS settings
POWERMEM_SERVER_CORS_ENABLED=true
POWERMEM_SERVER_CORS_ORIGINS=*
launch HTTP server:
pip install powermem
powermem-server --host 0.0.0.0 --port 8000
Also notification that I use Windows 11.
Fast reproduce steps
You can use Postmen (client to test Restful API) to reproduce the procedure of the bug. (also, memory in powermem should exist.)
Here are some photos for example:
First,we use API List memories to guarantee initial count of memories:

json response as follows:
{
"success": true,
"data": {
"memories": [
{
"memory_id": 675324255507841024,
"content": "过去10年中,约一半候选人仍活跃在职场",
"user_id": "user-browser-extension",
"agent_id": "agent-browser-extension",
"run_id": null,
"metadata": {
"source": "web",
"url": "https://www.zhihu.com/",
"title": "(99+ 封私信 / 80 条消息) 首页 - 知乎",
"context_snippet": " xxx ",
"from": "chrome-extension",
"space_id": ""
},
"created_at": "2026-02-07T12:57:29.431497Z",
"updated_at": "2026-02-07T12:57:29.587531Z"
},
...
],
"total": 5,
"limit": 10,
"offset": 0
},
"message": "Memories retrieved successfully",
"timestamp": "2026-02-09T17:47:41.171306Z"
}
Then,we use API delete momories The response returns error code 404.

Finally,we use API list momories again. The count alter from 5 to 4.

json response as follows:
{
"success": true,
"data": {
"memories": [
{
"memory_id": 675324255595921408,
"content": "过去10年的招聘经验经历了行业兴衰",
"user_id": "user-browser-extension",
"agent_id": "agent-browser-extension",
"run_id": null,
"metadata": {
"source": "web",
"url": "https://www.zhihu.com/",
"title": "(99+ 封私信 / 80 条消息) 首页 - 知乎",
"context_snippet": " xxx ",
"from": "chrome-extension",
"space_id": ""
},
"created_at": "2026-02-07T12:57:29.452991Z",
"updated_at": "2026-02-07T12:57:29.616198Z"
},
...
],
"total": 4,
"limit": 10,
"offset": 0
},
"message": "Memories retrieved successfully",
"timestamp": "2026-02-09T17:51:04.160892Z"
}
Expected behavior
like response body on website:
{
"success": true,
"data": {
"memory_id": 658958021480677376
},
"message": "Memory deleted successfully",
"timestamp": "2025-12-24T09:45:47.174799Z"
}
Actual behavior
return body:
{
"success": false,
"error": {
"code": "MEMORY_NOT_FOUND",
"message": "Memory 675324255507841024 not found",
"details": {}
},
"timestamp": "2026-02-09T17:50:33.089083Z"
}
but it delete specific data indeed.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status