Skip to main content
Nowledge MemNowledge Mem
API ReferenceEntitiesEntity_idDeletePreview

Preview entity deletion

GET
/entities/{entity_id}/delete/preview

Count the graph links that would be detached. Referencing memories are always preserved.

Path Parameters

entity_id*string

Entity id

Response Body

application/json

curl -X GET "https://example.com/entities/string/delete/preview"
{  "can_delete": true,  "counts": {    "communities": 0,    "incoming_relations": 0,    "labels": 0,    "mentions": 0,    "outgoing_relations": 0  },  "entity": {    "aliases": [      "string"    ],    "description": "string",    "entity_type": "string",    "id": "string",    "name": "string"  },  "memories_preserved": true}