Free tool: check how exposed your AI agents are under the DPDP Act, in 3 minutes
PlatformSolutionsDPDP ActSecurityPricingResources Free risk analyzer Book a demo
Erasure

How to delete personal data from a vector database

· 5 min read

When a customer asks you to delete their data, the database row is the easy part. AI systems copy that data into places a normal deletion job never visits.

Where the copies hide

  • Vector stores. The embedding of a document or chat that named the person.
  • Agent memory. Summaries and notes an agent saved for later.
  • Prompt and trace logs. Raw text of what the agent saw.
  • Caches and summaries. Cached answers that include the person’s details.
  • Backups. Snapshots taken before the request.

A workable approach

Tag at write time. Attach a subject_id to every stored item: rows, vectors, memory entries and log lines. You cannot delete what you cannot find.

Encrypt per person. Encrypt each person’s data with their own key held in a vault or KMS. Destroying the key makes backups and pseudonymised logs unreadable without touching the backup itself.

Delete vectors by subject, then compact. Remove vectors for the subject_id, then compact or re-index so no ghost vectors remain.

Verify. Run semantic searches and count queries for the person across every store. Plant synthetic “canary” people in tests and confirm zero recall after deletion.

Keep legal holds. Some records must be kept, for example under anti-money-laundering rules. Mark them, restrict agent use and delete the rest.

Prove it

End with a signed certificate that states what was deleted, where, when and which holds applied, and write it to a tamper-evident audit log. That certificate is the evidence an auditor will ask for.

Where to go next

The DPDP Act guide explains when erasure applies to AI agents. The platform page shows how per-person keys, a verified sweep and a signed certificate fit together, including what a sweep does not reach.

More guides

See what your AI agents are doing with customer data.

Get a free risk score in 3 minutes, or book a demo and see the platform running.

Free risk analyzerBook a demo