Skip to main content

Remove by Text Match

curl -X DELETE https://api.usenaive.ai/v1/memory \
  -H "Authorization: Bearer nv_sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "text": "brand color",
    "target": "memory"
  }'
{
  "success": true,
  "id": "mem-abc-123",
  "removed_content": "Our primary domain is example.com, brand color #FF6B00"
}

Request Body

FieldTypeRequiredDescription
textstringYesSubstring to match against stored memories
targetstringNomemory or user
agent_idstringNoAgent whose memories to search
Searches for the first memory containing the text substring and removes it.

Remove by ID

curl -X DELETE https://api.usenaive.ai/v1/memory/mem-abc-123 \
  -H "Authorization: Bearer nv_sk_live_..."
200
{
  "success": true,
  "id": "mem-abc-123"
}
Directly removes a specific memory entry by its ID.