forget
Forget Endpoint
Remove data from the knowledge graph.
- Set
everything: trueto delete all user data. - Set
datasetalone to delete an entire dataset. - Set
dataset+data_idto delete a single item. - Set
dataset+memory_only: trueto clear memory (graph + vector), preserving raw files so the dataset can be re-cognified. - Set
dataset+data_id+memory_only: trueto clear memory for a single file only.
POST
Forget Endpoint
Documentation Index
Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
When True with a dataset, delete only memory (graph nodes/edges and vector embeddings) and reset pipeline status — raw files and data records are preserved. This allows re-cognifying the dataset from scratch.
Response
Successful Response
Forget Endpoint