---
title: "What is PII redaction?"
description: "What PII redaction removes, why it is not the same as de-identification, and why code needs its history checked, not just its latest files."
canonical_url: https://www.fearofgod.ai/glossary/pii-redaction
last_updated: 2026-10-26
site: "fearofgod.ai"
lang: en
---

# What is PII redaction?

PII redaction is the removal or masking of personally identifiable information, such as names, contact details and account numbers, from documents, records or code before they are shared.

## What counts as PII in SOPs, documents and code?

PII is anything that can identify a person on its own or combined with other details. NIST's guide, quoting a definition written for federal agencies, describes it as information that can be used "to distinguish or trace an individual's identity", plus information "linked or linkable to an individual", such as financial or employment details ([NIST SP 800-122, April 2010](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-122.pdf)). In company records that covers names and emails in a procedure's sign-off block, customer details pasted into tickets, phone numbers in chat archives, and author names and emails in commit metadata.

## Is redaction the same as de-identification?

No; redaction is one technique inside de-identification, and blanking visible names is not always enough. Context can still point to a person, and under the GDPR data that can be attributed to someone with additional information remains personal data ([GDPR Recital 26](https://www.legislation.gov.uk/eur/2016/679/introduction/adopted)). Even HIPAA's list-based method for health data requires both removing 18 identifiers and that the holder has no actual knowledge the remainder could identify someone ([45 CFR 164.514(b)(2)](https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-C/part-164/subpart-E/section-164.514)).

## Why does redaction in code have to reach the history?

Because a repository keeps every earlier version, a credential or a customer's email deleted from today's files can still sit in an old commit. GitHub's documentation explains that removing sensitive data means rewriting the repository's history, and that if the data is a secret such as a password or token, "as a first step you need to revoke and/or rotate that secret" ([GitHub Docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)). For a company licensing code with its commit and review history, that history needs checking as well as the latest files. fearofgod.ai de-identifies the data before it goes to buyers. This page is general information, not legal advice.


## Related

- [De-identification](https://www.fearofgod.ai/glossary/de-identification)
- [Pseudonymization](https://www.fearofgod.ai/glossary/pseudonymization)
- [Anonymization](https://www.fearofgod.ai/glossary/anonymization)
- [Your solved support tickets can keep earning](https://www.fearofgod.ai/sell/support-tickets-and-customer-conversations)
- [Put your codebase and its review history to work](https://www.fearofgod.ai/sell/codebases-and-engineering-history)

---

Source: https://www.fearofgod.ai/glossary/pii-redaction · Index for AI systems: https://www.fearofgod.ai/llms.txt · Contact: sean@fearofgod.ai
