Updated At Apr 18, 2026

DPDP Act 2023 Ecommerce & D2C First-party data strategy 8 min read

Right to Erasure for Ecommerce: Returns, Refunds, and Purchase History

How Indian ecommerce and D2C leaders can implement DPDP-compliant erasure across returns, refunds, and purchase history while preserving lawful records and first-party data value.
Key takeaways
  • Treat the DPDP right to erasure as a design problem: build systems that can forget identifiable customer data while retaining lawful, aggregated insights.
  • Separate what must be deleted on request from what must be retained for GST, income tax, accounting, fraud-prevention, and dispute-handling duties.
  • Define dataset-specific retention schedules and technical patterns (pseudonymisation, key deletion, suppression lists) for orders, returns, refunds, and support data.
  • Embed erasure into operational workflows—returns, refunds, chargebacks, loyalty—rather than treating it as an ad-hoc legal or IT ticket.
  • Use consent management and user-rights portals to orchestrate erasure across channels, document decisions, and evidence DPDP compliance to boards and regulators.

Understanding the DPDP right to erasure in an ecommerce context

Under the Digital Personal Data Protection Act, 2023, individuals (data principals) can require organisations (data fiduciaries) to correct, complete, update, and erase their personal data when it is inaccurate, no longer necessary for the stated purpose, consent is withdrawn, or processing is otherwise unlawful.[1]
For Indian ecommerce and D2C businesses, this right collides with complex order lifecycles: orders, returns, refunds, exchanges, chargebacks, loyalty, and support are spread across multiple systems and intertwined with statutory records. The DPDP framework also makes clear that erasure cannot override obligations to retain data where another Indian law requires retention, such as for tax or financial compliance.[4]
For ecommerce and D2C leadership teams, the practical obligations boil down to a few core points:
  • The right to erasure applies to digital personal data that can identify a customer directly or indirectly, including through IDs linked across systems.
  • You must erase personal data when the purpose is fulfilled or consent is withdrawn, unless specific laws require continued retention.
  • You need a clear, accessible mechanism for customers to request erasure, often alongside access and correction flows in your account or help centre.
  • You should log decisions and communicate outcomes, including why certain data elements (for example, invoices) cannot be erased but can be minimised.

Mapping ecommerce data flows for returns, refunds, and purchase history

Before you write erasure rules, you need a realistic map of how data moves. A single return or refund touches storefront, order management, warehouse, logistics, payment gateway, support tools, and analytics. Ecommerce DPDP guidance typically recommends treating each of these flows as distinct processing activities with their own purposes and retention needs.[6]
For most Indian ecommerce or D2C brands, key flows that matter for erasure are:
  • Order placement and fulfilment: customer profile, contact details, addresses, payment token, order lines, invoice, GST details (where applicable).
  • Returns and exchanges: RMA IDs, reason codes, product condition photos, pickup address, courier tracking data, warehouse inspection decisions.
  • Refunds and chargebacks: refund method, gateway or bank reference IDs, dispute evidence, communications with the customer and payment provider.
  • Customer support tickets: chats, emails, call recordings, internal notes, case IDs tying issues back to specific orders or accounts.
  • Loyalty, recommendations, and marketing: browsing history, wishlists, segment tags, campaign engagement metrics, channel preferences.
  • Analytics and reporting: aggregated order metrics, cohorts, funnel performance, channel attribution, warehouse and courier performance dashboards.
Use this view of ecommerce flows to decide whether a given data element should be deleted, pseudonymised, or retained in aggregated form.
Flow / use case Typical data elements Erasure focus Must retain?
Order and fulfilment Customer identifiers, contact details, shipping and billing addresses, order items, invoice number, GSTIN (if collected), payment reference token. Direct identifiers and contact details that are not strictly required for statutory or reconciliation purposes. Core invoice, order, and tax data are usually needed for multi-year retention; prefer pseudonymising identifiers over deleting whole records.
Returns and exchanges Return ID, original order ID, product details, reason codes, pickup address, courier tracking, warehouse inspection notes and photos. Free-text notes, images, and contact details that are not needed for GST adjustments, inventory, or dispute handling. Return records may need to be kept to support stock reconciliation, GST credit notes, and audits; use minimisation instead of blanket deletion.
Refunds and chargebacks Refund method, gateway or bank reference IDs, dispute evidence, communications with the customer and issuer, fraud signals or scores. Descriptive notes and any unnecessary personal details; you should avoid ever storing raw card numbers or CVV in your own systems. Refund trails and dispute evidence are often essential for banking, card network, and fraud-prevention purposes, so focus on redaction and tokenisation rather than deletion.
Customer support tickets Ticket IDs, chats, emails, call recordings, screenshots, internal notes, and case outcome codes linked back to orders or accounts. Recordings, transcripts, and attachments that contain rich personal data once operational and dispute needs have passed. Keep minimal case metadata and outcomes in aggregated form for quality monitoring; delete or anonymise content-level data over time or on erasure request.
Loyalty, recommendations, and marketing Points balances, tier, browsing history, wishlists, segment tags, campaign impressions and clicks, unsubscribe events, channel preferences. Profiling attributes, behavioural tags, and communication history that are tied to identifiable profiles once consent is withdrawn or purpose ends. Aggregated campaign and cohort metrics can often be retained after proper anonymisation; identifiable profiles should be deleted or pseudonymised.
Analytics and reporting Order volumes, AOV, repeat-rate cohorts, funnel conversion, product and category performance, warehouse and courier performance scores. Keys that link aggregates back to individual customers, devices, or sessions, once they are no longer needed or have been erased elsewhere. Truly anonymised analytics that cannot be linked back to individuals can usually be retained without triggering erasure rights, but verify your anonymisation approach.

Designing retention and erasure rules that balance DPDP with tax and compliance laws

DPDP expects organisations not to store personal data longer than necessary for the purpose for which it was collected, and to erase it once that purpose is fulfilled or consent is withdrawn, subject to any overriding legal obligation to retain it.[1]
At the same time, GST and related tax rules require businesses to maintain detailed accounts, invoices, and supporting documents for several years, often on the order of six years or more, which directly affects how long ecommerce businesses must keep order and refund records.[5]
Industry interpretations of DPDP stress the need for documented retention schedules that specify, for each data category, its purpose, legal basis, retention duration, and erasure or minimisation approach, so organisations can show proportionality to auditors and regulators.[3]
Illustrative retention posture for common ecommerce datasets—validate durations and legal bases with your advisors for your specific context.
Data category Minimum retention driver Example retention posture Erasure approach on request
Tax-relevant order and refund records GST, income tax, and accounting record-keeping requirements. Retain invoices, order records, and refund entries for statutory periods (for many businesses at least six years, or as advised by tax counsel). Keep financial and tax elements; remove or pseudonymise non-essential identifiers such as marketing tags, device IDs, and optional notes linked to the customer.
Payment gateway and fraud logs Banking, chargeback, and fraud monitoring obligations and partner contracts. Retain core transaction references and risk signals for the period needed to defend chargebacks and monitor fraud patterns; shorten retention for IPs and device fingerprints where possible. Tokenise identifiers and drop high-granularity behavioural or device data once no longer required; preserve only what is necessary to resolve disputes and detect fraud.
Customer profile and marketing preferences Consent-based marketing and personalisation, plus contractual obligations in loyalty programmes. Retain profiles while consent is valid and the customer is active; periodically delete or archive inactive accounts where there is no other legal basis to keep them. Delete or heavily pseudonymise the profile, keeping only minimal suppression flags to ensure the customer is not re-targeted or re-imported inadvertently.
Support tickets and call recordings Service quality, dispute evidence, and risk management practices. Keep detailed content (recordings, transcripts) for a relatively short period; retain summarised case outcomes and metrics longer for quality management and trend analysis. On erasure, delete or anonymise content-level data (names, voices, email bodies), while keeping anonymised case metadata such as issue type, resolution code, and time-to-close.
Analytics and business intelligence datasets Internal analytics needs, management reporting, and product optimisation goals. Retain dashboards and aggregated datasets where they no longer reveal, or can be linked back to, identifiable individuals, rather than profile-level histories. Ensure anonymisation processes strip or randomise any keys that could re-identify customers; when a user is erased, propagate that event through your data pipelines and re-run affected aggregates if needed.
A few practical design principles for ecommerce data retention and erasure:
  • Store personal identifiers (name, email, mobile, device IDs) in separate columns or tables so they can be removed without breaking financial or inventory records.
  • Avoid free-text fields for sensitive information; encode return reasons, dispute outcomes, and complaint types using structured codes wherever possible.
  • Use pseudonymisation or tokenisation so that analytics can continue on keyed but de-identified data, with the option to destroy keys when erasure is required.
  • Maintain suppression lists that record minimal, hashed identifiers and a "do not process for marketing" or "erased" flag, to prevent future reactivation of deleted users.
  • Document, for each dataset, its purpose, lawful basis, retention logic, and erasure method so that engineers, legal, and business owners are aligned.

Implementing right-to-erasure in ecommerce systems and consent architecture

Translating policy into practice means wiring right-to-erasure into every system that touches the customer: storefront, CRM, order-management, logistics, payments, marketing, and analytics. DPDP rulemaking materials describe consent managers and structured processes for data principal rights, which you can mirror in your architecture with authenticated requests, verification, and time-bound responses.[2]
Use this checklist to move from abstract DPDP obligations to a working ecommerce erasure capability.
  1. Establish policy, legal mapping, and risk appetite
    For each major flow (orders, returns, refunds, support, loyalty), document purposes, lawful bases, retention drivers, and what happens when a user requests erasure while statutory obligations still apply. Align this with legal, finance, and risk.
  2. Create and maintain a data inventory
    Map where personal data for orders, returns, refunds, and support actually live—databases, SaaS tools, data warehouse tables, backup regimes—and identify system owners and integration options (APIs, webhooks, batch).
  3. Design intake and authentication for erasure requests
    Standardise how you receive erasure requests: account portal, in-app form, email, or call-centre scripts. Define how you verify identity, handle requests for guests vs registered users, and capture purpose and scope of each request.
  4. Implement erasure patterns in each system
    Configure operations such as direct deletion where lawful, field-level nulling or hashing, key deletion to break links between tables, and soft-delete plus scheduled purge for logs. Ensure every action is logged with timestamps and reasons when specific records are retained.
  5. Integrate consent, preferences, and suppression signals
    Align erasure with consent management so that when customers withdraw marketing consent or close accounts, suppression flags propagate to CRM, email platforms, ad tools, and data warehouses, not just your core store database.
  6. Automate orchestration and build audit-ready evidence
    Use workflow engines or specialised consent and rights platforms to orchestrate erasure events across systems. Capture who requested what, when actions were taken, which systems were updated, and why certain data had to be retained, so you can respond confidently to audits or investigations.
Technical patterns that support "effective erasure" without breaking core business records:
  • Pseudonymisation: replace direct identifiers with random keys stored in a separate location, so destroying the key makes historical records practically unlinkable to individuals.
  • Tokenisation: rely on payment gateways or security providers to store sensitive card or bank data, keeping only tokens in your systems so there is little to erase and less risk if systems are compromised.
  • Key deletion: architect databases so that customer IDs can be rotated or deleted while leaving invoice, tax, and inventory entries intact but no longer tied to a living profile.
  • Field-level erasure: in CRMs and support tools, null or hash specific personal fields (name, email, phone, address) while preserving order and case numbers needed for reconciliations.
  • Suppression lists: maintain minimal, hashed identifiers with flags like "do not market" or "erasure requested" that prevent re-importing deleted profiles from partners or legacy backups.

Evaluate DPDP-ready consent and erasure orchestration

Digital Anumati

Digital Anumati is an enterprise-grade consent management solution designed around India’s DPDP Act, helping organisations govern consents, manage user rights such as data deletio...
  • Structured consent governance with real-time tracking, lawful-purpose mapping, and configurable processing controls tai...
  • Dedicated user portals where individuals can review, revoke, and update consents and exercise rights such as access, co...
  • Immutable consent logs, expiry alerts, analytics dashboards, and advanced search to support internal reviews, audits, a...
  • Quick integration into ecommerce stacks using RESTful APIs, JavaScript, and native mobile SDKs, with multi-lingual cons...
  • Enterprise-focused security with AES-256 encryption for personal data and a reliability posture that includes 24×7 supp...

Troubleshooting common erasure implementation issues

As you operationalise right-to-erasure, these issues often surface and need structured fixes:
  • Returns or warranty workflows break after erasure because business rules still expect a live customer profile. Decouple workflow logic from direct identifiers and rely on order or case IDs instead.
  • Payment or refund reconciliations fail because transaction references were deleted. Preserve gateway and bank reference IDs while erasing unnecessary personal fields around them.
  • Data warehouses and BI tools still show the customer after erasure. Ensure erasure events trigger downstream ETL or streaming jobs and that derived tables are rebuilt or updated accordingly.
  • Support agents recreate erased profiles "to help the customer". Train teams on DPDP obligations and use suppression flags so recreated records are blocked or minimised by default.
  • Third-party marketing partners continue contacting erased users. Update contracts and technical integrations so suppression lists are synchronised and partners commit to acting on erasure instructions.

Operating model, governance, and ROI for a right-to-erasure program

Right-to-erasure cannot live only in a privacy policy. It needs an operating model: clear ownership, defined SLAs, documented runbooks, integrated tooling, and metrics that show both compliance posture and business value.
Key elements decision-makers should formalise:
  • Ownership and roles: nominate a privacy or data-protection lead, align them with product, engineering, finance, and customer operations, and make system owners accountable for executing erasure in their domains.
  • SLA and process design: define standard response times for erasure requests, escalation paths for complex cases (for example, ongoing disputes), and playbooks for scenarios like guest checkout or multiple linked accounts.
  • KPIs and reporting: track volumes of erasure requests, median and 95th-percentile time-to-fulfil, percentage of systems covered by automated workflows, exceptions where legal retention prevented deletion, and root causes of delays.
  • Risk and ROI lens: position erasure capabilities as protection against regulatory penalties and reputational damage, but also as a way to improve data quality, increase trust, and strengthen first-party consent-based engagement.
  • Tooling strategy: once you have a baseline process, run a structured review of your erasure and consent posture and then evaluate DPDP-aligned consent and rights-orchestration tools—such as by scheduling a compliance consultation or starting a trial with solutions like Digital Anumati to see how they fit into your ecommerce stack.

Common mistakes to avoid in ecommerce erasure programs

Avoid these frequent pitfalls as you design and roll out your approach:
  • Treating erasure as a one-time IT script instead of an ongoing, cross-functional process spanning legal, finance, product, engineering, and operations.
  • Over-deleting by wiping invoices, GST records, or core accounting entries that you are legally obliged to retain, creating future tax and audit exposure.
  • Under-deleting by updating your core store database but leaving personal data untouched in logs, exports, data warehouses, or third-party tools that were never integrated into the workflow.
  • Ignoring identity resolution and duplicates, so erasure is applied to one email or mobile number but not to linked guest checkouts, legacy accounts, or offline records.
  • Giving opaque responses to customers, without explaining what was deleted, what had to be retained for legal reasons, and how their data will be handled going forward.

Common questions about erasure for ecommerce leaders

FAQs

You must provide data principals with a way to request correction and erasure of their personal data where it is inaccurate, no longer needed for the stated purpose, consent has been withdrawn, or processing is unlawful, while respecting situations where other laws require retention.

In practice, this means verifying identity, assessing which datasets are in scope, deciding what can be deleted versus only minimised or pseudonymised, executing those actions across all relevant systems, and giving the customer a clear response within your defined timelines.

No one can require you to violate other laws. If GST, income-tax, accounting, or banking rules require you to keep certain records for a defined period, you may retain that data despite an erasure request, provided you restrict its use to those legal purposes only.

You should, however, minimise what you keep: remove marketing tags, behavioural attributes, and free-text notes, and pseudonymise identifiers where feasible, while clearly explaining to the customer why specific records could not be fully deleted.

Purchase history that feeds into tax, accounting, and fraud obligations may need to be kept for several years, aligned with statutory requirements. Beyond that, keeping detailed, identifiable histories indefinitely generally conflicts with DPDP’s expectation of storage limitation and purpose limitation.

Browsing data and marketing profiles are usually driven by consent or legitimate business purposes and should be retained only while those purposes and consents remain valid. Many brands adopt rolling retention windows for behavioural data and delete or anonymise older events on a schedule.

You generally need to complete financial flows and dispute windows before you can fully delete or pseudonymise data that is central to those processes. A practical pattern is to stop using the data for marketing or profiling immediately, but delay deeper deletion or pseudonymisation until refunds, reversals, or disputes have closed.

Document this in your policy and customer communication so it is clear that certain elements will be erased only after operational and legal obligations linked to the transaction are fulfilled.

High-performing organisations usually formalise a cross-functional working model: a privacy or data-protection lead coordinates with product, engineering, finance, legal, and customer operations; each major system has a named owner; and there is a standard runbook for handling requests from intake through decision to execution and communication.

Metrics such as time-to-fulfil requests, coverage of automated workflows, and the number of exceptions due to legal retention help leaders track progress, justify investments, and report to boards and regulators.

A DPDP-focused consent management platform sits at the centre of your data rights operating model: it can capture and orchestrate consent events, expose user portals where customers review and update consents, submit access or deletion requests, and provide audit-ready logs of what notices were shown and what choices were made.

Solutions such as Digital Anumati offer features like dynamic consent orchestration, multi-lingual consent flows, enterprise-grade security, and integration via APIs and SDKs so that consent and erasure decisions can propagate across your ecommerce stack. They are enablers, not guarantees of compliance, so you still need strong governance and legal oversight.


Sources
  1. The Digital Personal Data Protection Act, 2023 - Ministry of Law and Justice, Government of India
  2. Explanatory Note to Digital Personal Data Protection Rules, 2025 - Ministry of Electronics and Information Technology (MeitY)
  3. Summary – The Digital Personal Data Protection Act, 2023 - Data Security Council of India
  4. Rights of Data Principals under the Digital Personal Data Protection Act, 2023 - dpdpaedu.org
  5. Handbook on Accounts and Records under GST - Institute of Chartered Accountants of India (ICAI)
  6. DPDP Compliance for E-Commerce: Complete Guide for Online Sellers - ComplyZero
  7. Digital Anumati – DPDP Act Compliant Consent Management - Digital Anumati