Memories
Delete a memory
Permanently delete a note.
DELETE
/
api
/
v2
/
memories
/
{id}
from hai_agents import Client
client = Client()
client.memories.delete_memory(memory_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.memories.deleteMemory({ id: memoryId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/memories/$MEMORY_ID" -H "Authorization: Bearer $HAI_API_KEY"
holo memories delete "$MEMORY_ID" --yes
Path parameters
Response
204 No Content. The note is no longer available to agents using that namespace.
from hai_agents import Client
client = Client()
client.memories.delete_memory(memory_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.memories.deleteMemory({ id: memoryId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/memories/$MEMORY_ID" -H "Authorization: Bearer $HAI_API_KEY"
holo memories delete "$MEMORY_ID" --yes
Errors
404 if the note is absent or belongs to another organization. 422 for invalid input. See common errors.Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
client.memories.delete_memory(memory_id)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
await client.memories.deleteMemory({ id: memoryId });
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/memories/$MEMORY_ID" -H "Authorization: Bearer $HAI_API_KEY"
holo memories delete "$MEMORY_ID" --yes