Delete an entity pattern by name. Optionally specify entity_type for disambiguation.
Path Parameters
pattern_name*Pattern Name
Query Parameters
entity_type?Entity Type
Response Body
application/json
application/json
curl -X DELETE "https://example.com/memory/ontology/patterns/string"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Delete Memory
Delete a memory item by ID with optional entity garbage collection. Requires authentication and validates item ownership. Args: item_id: ID of the memory item to delete cleanup_orphans: If True, also delete entities that have no other references (default: True) Returns: dict: Deletion status and garbage collection statistics
Delete Pattern
Soft-delete (retract) a pattern. Status becomes 'retracted'.