SKILL-002 Authentication and account lifecycle Locked skill

Account deletion and data export

"Delete my account" rarely means "erase every row." It means revoke access and remove personal data — while you keep what billing and law require.

01

What this skill helps you build

Let users export their data and delete their account — handling the gap between what they want erased and what you're legally required to keep.

The production takeaway

"Delete my account" rarely means "erase every row." It means revoke access and remove personal data — while you keep what billing and law require.

02

Inside this skill

The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.

Authentication and account lifecycle
What this helps you build

A trustworthy off boarding flow: a user can download a copy of their data and ask for their account to be deleted, and your system handles it correctly — closing access immediately

🔒
Authentication and account lifecycle
When to use this

Build this once you store personal data and have real users — which is almost immediately for a SaaS. You specifically need it when: You operate in or sell to the EU/UK/California

🔒
Authentication and account lifecycle
The core idea

"Delete my account" is almost never a literal DELETE FROM users . It's a policy decision per data category : hard delete, anonymize, or retain. The mental model — Sort every piece

🔒
03

Unlock the full implementation

Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.