Account Deletion Readback

Account Deletion Readback is a copy-paste React component that stops deleted account still billing subscriptions before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/account-deletion-readback
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsDeleted account still billing subscriptions

Was this component page useful?

How do I install Account Deletion Readback?

pnpm dlx shadcn@latest add @bollard/account-deletion-readback

The files land in your project. They're yours to edit.

What input mistakes does Account Deletion Readback catch?

  • Teams or workspaces where the user is the only owner, with a transfer action
  • App Store and Google Play subscriptions that keep billing after the account is gone
  • Deleting mid-way through a paid period, with an option to delete when it ends
  • No data export taken yet (the button reads "Delete without export")
  • A typed confirmation that does not match the phrase

What props does Account Deletion Readback accept?

AccountDeletionReadback props
PropTypeDefault
email* (required)

The account being deleted.

string—
items

What is deleted: data, files, projects.

DeletionItem[][]
teams

Teams or workspaces the user belongs to; sole-owner ones get a transfer prompt.

DeletionTeam[][]
subscriptions

Paid plans tied to the account, including app store plans.

DeletionSubscription[][]
retained

What the law makes you keep, e.g. "Invoices, for 8 years (tax law)".

string[][]
graceDays

Days the account can still be restored. 0 means immediate.

number30
now

"Now" in epoch ms, for deterministic rendering. Read from the clock after mount when omitted.

number—
locale

BCP 47 locale used for dates. Defaults to the browser locale.

string—
confirmPhrase

What must be typed to confirm. Defaults to the email, matched without case.

string—
orphanTeams

Sole-owner teams block deletion until transferred ("block"), or are deleted with the account ("delete").

"block" | "delete""block"
scheduleOption

Offer "delete when the paid period ends" when a subscription has a future `endsOn`. Immediate deletion stays the default.

booleantrue
onExport

Starts the export. May return a Promise; the button shows progress.

() => void | Promise<void>—
onTransfer

Opens or performs a transfer. Update `teams` when it is done. May return a Promise.

(teamId: string) => void | Promise<void>—
onDelete

Deletes the account now, or schedules it (`timing.when === "periodEnd"`). May return a Promise; double submits are ignored.

(timing: DeletionTiming) => void | Promise<void>—
messages

Any visible string.

Partial<Omit<AccountDeletionMessages, "storeName">> & { storeName?: Partial<AccountDeletionMessages["storeName"]> }—

* required. Also accepts the native props of <section> (className, aria-*, data-*…), passed through to it.

How is Account Deletion Readback accessible?

  • Labelled confirmation input with aria-invalid and aria-describedby on a mismatch
  • Timing options are native radio inputs with labels
  • Export progress is announced in an aria-live="polite" region
  • The Delete button is described by the list of what still blocks it; focus moves to the first fix button

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Authorise the deletion on the server, re-check ownership and active subscriptions there, and run any scheduled deletion and retention from the backend.

  • Only shows the items, teams and subscriptions you pass in; it does not discover them
  • Whether a store plan is cancelled comes from your data (e.g. the store's server API), not from the component
  • It does not perform deletion, export or transfer; those are your callbacks

What expensive mistakes does Account Deletion Readback stop?

Deleted account still billing subscriptions

Also known as

delete account · close account · account settings · gdpr · dpdp · data export · app store subscription · play store billing

Field type

What dependencies does Account Deletion Readback require?

Account Deletion Readback facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameAccount Deletion Readback
Registry identifier@bollard/account-deletion-readback
Install commandnpx shadcn@latest add @bollard/account-deletion-readback
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Account Deletion Readback

How does Account Deletion Readback protect destructive mutations?

Account Deletion Readback prevents deleted account still billing subscriptions. Enforces deliberate friction against Teams or workspaces where the user is the only owner, with a transfer action, App Store and Google Play subscriptions that keep billing after the account is gone, Deleting mid-way through a paid period, with an option to delete when it ends, No data export taken yet (the button reads "Delete without export"), A typed confirmation that does not match the phrase. Limitation: authorize account-deletion-readback mutations on the server.

How do I install account-deletion-readback with shadcn?

Run `npx shadcn@latest add @bollard/account-deletion-readback`. Sources added: registry/default/account-deletion-readback/account-deletion-readback.tsx. Package requirements: lucide-react.

What props customize Account Deletion Readback?

Account Deletion Readback accepts `email`, `items`, `teams`, `subscriptions`, `retained`. Configures delete account, close account, account settings behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of account-deletion-readback?

Only shows the items, teams and subscriptions you pass in; it does not discover them. Whether a store plan is cancelled comes from your data (e.g. the store's server API), not from the component. It does not perform deletion, export or transfer; those are your callbacks Server requirement: Authorise the deletion on the server, re-check ownership and active subscriptions there, and run any scheduled deletion and retention from the backend.

How does Account Deletion Readback meet accessibility guidelines?

Labelled confirmation input with aria-invalid and aria-describedby on a mismatch. Timing options are native radio inputs with labels. Export progress is announced in an aria-live="polite" region. The Delete button is described by the list of what still blocks it; focus moves to the first fix button. Minimizes errors: delete account keeps charging, account deleted lost team data.

Which components pair with Account Deletion Readback?