Skip to content

docs(data-deletion): trace deletion does not remove personal data in prompts or datasets#3064

Open
dmitrymaranik wants to merge 1 commit into
langfuse:mainfrom
dmitrymaranik:docs/data-deletion-non-trace-objects
Open

docs(data-deletion): trace deletion does not remove personal data in prompts or datasets#3064
dmitrymaranik wants to merge 1 commit into
langfuse:mainfrom
dmitrymaranik:docs/data-deletion-non-trace-objects

Conversation

@dmitrymaranik

@dmitrymaranik dmitrymaranik commented Jun 8, 2026

Copy link
Copy Markdown

What

A short clarification on the Data Deletion page: deleting traces (including a user's traces by userId for 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

  • Docs-only; a single <Callout type="info"> (the type used widely across these docs), with an in-page anchor to "Deleting a Project" (no external links added).
  • AI-assisted contribution; DCO Signed-off-by included.

Greptile Summary

This PR adds a clarifying <Callout type="info"> to the Data Deletion page to make explicit that trace deletion (including by userId for GDPR erasure) does not remove personal data stored in prompts or datasets — users must delete those objects separately or delete the entire project.

  • The callout is placed immediately after the existing cascade note under "Deleting Traces," and links correctly to the #deleting-a-project anchor in the same page.
  • Content is accurate: trace deletion cascades only to observations and scores, leaving Postgres-backed prompt templates and dataset items untouched.

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 --> G
Loading

Reviews (1): Last reviewed commit: "docs(data-deletion): note trace deletion..." | Re-trigger Greptile

…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>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

@dmitrymaranik is attempting to deploy a commit to the langfuse Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 8, 2026
@CLAassistant

CLAassistant commented Jun 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot Bot added the docs label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants