docs(data-deletion): trace deletion does not remove personal data in prompts or datasets#3064
Open
dmitrymaranik wants to merge 1 commit into
Open
Conversation
…a in prompts/datasets Clarify on the Data Deletion page that deleting traces (including a user's traces by userId for a data subject request) removes the traces and their observations/scores, but not personal data that may also live in prompts or datasets - delete those objects as well, or delete the whole project, for complete erasure. Surfaced while verifying GDPR erasure on a self-hosted Langfuse with Sectum AI; AI-assisted contribution. Signed-off-by: Dmitry Maranik <dmitrymaranik@gmail.com>
|
@dmitrymaranik is attempting to deploy a commit to the langfuse Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A short clarification on the Data Deletion page: deleting traces (including a user's traces by
userIdfor a data subject request) removes the traces and their related observations and scores, but not personal data that may also be stored in prompts or datasets. To erase a user's data completely, delete those objects as well, or delete the entire project.Why
The page already notes that trace deletion cascades to scores and observations, and Managing Personal Data points to deleting a user's traces by
userId. But personal data can also land in prompt templates or dataset items, which trace deletion does not touch — so a GDPR erasure that only deletes traces can leave that data behind. The added callout makes the boundary explicit and points to project deletion for complete erasure.This was surfaced while verifying GDPR Article 17 erasure on a self-hosted Langfuse v3 with Sectum AI (open-source multi-tenant isolation verification). Empirically: deleting a user's traces removed them from the API, ClickHouse, and the S3 event blob, while the same user's seeded prompt/dataset rows remained in Postgres until deleted separately.
Notes
<Callout type="info">(the type used widely across these docs), with an in-page anchor to "Deleting a Project" (no external links added).Signed-off-byincluded.Greptile Summary
This PR adds a clarifying
<Callout type="info">to the Data Deletion page to make explicit that trace deletion (including byuserIdfor GDPR erasure) does not remove personal data stored in prompts or datasets — users must delete those objects separately or delete the entire project.#deleting-a-projectanchor in the same page.Confidence Score: 5/5
Documentation-only change with no logic, no code, and no configuration touched — safe to merge.
The change is a single callout block inserted into one MDX file. The anchor link resolves to the correct in-page section, the Callout component type is consistent with the rest of the docs, and the technical claim accurately reflects how trace deletion cascades in Langfuse. Nothing here can break a build or runtime behaviour.
No files require special attention.
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["Delete traces by userId\n(GDPR Article 17 request)"] --> B["Traces removed\n(ClickHouse / S3 event blobs)"] B --> C["Observations removed\n(cascade)"] B --> D["Scores removed\n(cascade)"] A --> E["⚠️ Prompts NOT removed\n(Postgres — separate objects)"] A --> F["⚠️ Dataset items NOT removed\n(Postgres — separate objects)"] E --> G["Must delete manually,\nor delete entire project"] F --> GReviews (1): Last reviewed commit: "docs(data-deletion): note trace deletion..." | Re-trigger Greptile