Delete memories by scope
Delete all memories within a scope.
DELETE /v1/memories
Deletes every memory in a scope. Provide at least one of user_id, agent_id,
or run_id.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | no | Delete all in this user scope |
agent_id | string | no | Delete all in this agent scope |
run_id | string | no | Delete all in this run scope |
Request
curl -X DELETE "https://fishmem.com/v1/memories?user_id=alex" \
-H "Authorization: Bearer fm_..."Response
{ "deleted": 12 }deleted is the count of removed memories.
Credits
Free.
Errors
Returns the standard error shape. A missing or invalid key
returns 401 with "error": "INVALID_API_KEY".