Skip to content

docs: $retract DTL flag for history pruning (IS-17887)#1332

Open
Ole-Morten wants to merge 6 commits intomasterfrom
IS-17887
Open

docs: $retract DTL flag for history pruning (IS-17887)#1332
Ole-Morten wants to merge 6 commits intomasterfrom
IS-17887

Conversation

@Ole-Morten
Copy link
Contributor

IS-17887 — Retract as history prune

What changed

Documents the new $retract special field on entities in three places:

  • hub/changelog.rst — Changelog entry dated 2026-03-17.
  • hub/documentation/data-management/entity-data-model.rst — New row in the Special fields table and a dedicated Retract as history prune subsection with a configuration example.
  • hub/quick-reference.rst$retract added to the Special fields list.

Feature summary

$retract: true is a DTL output flag. When a pipe sets it on an output entity, the dataset sink writes that entity as the new latest version and permanently removes all earlier versions of that entity id. Deletion state is unaffected.

Typical use case: removing PII from version history once it is no longer needed — e.g. a customer's SSN is present while they are active, but once offboarded the pipe emits a sanitised entity with $retract: true, dropping all history that contained the SSN.

The operation is idempotent.

@Ole-Morten Ole-Morten requested a review from a team as a code owner March 17, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant