Endpoint
Authentication
Requires a developer API key in the Authorization header.
Path Parameters
Example Request
Response — 201 Created
201 for a new erasure. Repeating the request for a principal whose records
are all erased already returns the completed request with 200 instead of
creating another.
Response Fields
What Happens on Erasure
In one transaction:
- The grants of the principal’s consent records that are still active are revoked, with
revokedAt, the revocation cache and a grant.revoked event each. By default only those grants are revoked, as this endpoint always did; with DPDP_REVOCATION_CASCADE=true the grants delegated from them, their credentials and wallet reservations are revoked through the grant cascade too.
- The principal’s consent records are set to
status: 'erased' with erasedAt; they are retained, not deleted.
- With
DPDP_ERASURE_EXPANDED=true only: the principal’s grievances keep their reference, type, status and dates, and their description and evidence are replaced by a fixed marker.
- With
DPDP_ERASURE_EXPANDED=true only: stored exports filtered to the principal, or containing the principal id, are deleted.
- The request is stored and recorded on the audit chain as
grantex.dpdp.erasure_completed, and a dpdp.erasure.completed event is emitted.
What is retained, and why, is returned in retained:
- Consent records are kept, marked erased, because the Data Fiduciary bears the burden of proving consent (DPDP Act s.6(10)) and DPDP Rules 2025 r.8(3) require processing logs and associated data to be retained for at least one year.
- Audit entries are neither modified nor deleted: DPDP Rules 2025 r.6(1)(e) and r.8(3) require logs to be retained for at least one year, and the entries form a tamper-evident hash chain.
- Grievances are kept as the record of grievance handling: redacted with
DPDP_ERASURE_EXPANDED=true, otherwise unchanged, and the reason says expanded erasure is not enabled.
- Stored exports (
stored_exports, only without DPDP_ERASURE_EXPANDED=true) about the principal are kept until they expire, seven days after creation, and the reason says expanded erasure is not enabled.
- The fiduciary’s processed data is not held by Grantex; erasing it in the fiduciary’s own systems and its processors’ (DPDP Act s.8(7)) is the fiduciary’s step.
These obligations apply from the commencement of the DPDP Rules’ substantive provisions (13 May 2027); the endpoint behaves the same before then.
Error Responses
SDK Examples
Ownership
Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com.Last modified on September 30, 2026