Supabase ยท GDPR ยท App-Store ready

Account Deletion + Data Export

The in-app account deletion Apple and Google now require, plus the GDPR data export, as two drop-in Supabase Edge Functions.

โœ“ Real production code ย ยทย  โœ“ Drop-in ย ยทย  โœ“ Setup guide included ย ยทย  โœ“ Single-project commercial use ย ยทย  โœ“ 30-day money-back guarantee

Account Deletion + Data Export cover

The plumbing nobody enjoys writing.

Compliance is a requirement, not a feature, and it is easy to orphan storage files or hit a foreign-key error. This gets the deletion order and the safeguards right.

What you get

๐Ÿ—‘๏ธ
Delete in the right order

Storage wiped first (cascade never touches Storage), then the auth user, which cascades every owned row.

๐Ÿ“ฅ
One-call GDPR export

Returns the user's full data across your tables as a single JSON download.

๐Ÿ”‘
Identity from the JWT

Always acts on the caller's own id, so a client can never delete or export another account.

โœ…
Store-compliant

Satisfies Apple App Review 5.1.1(v) and Google Play's account-deletion policy.

๐Ÿ”ง
Client helpers included

deleteAccount and downloadMyData, plus the foreign-key cascade setup.

๐Ÿ“
Security guide

Service-role only, JWT-scoped identity, and the cascade rules spelled out.

From the writeup, packaged ยท just โ‚ฌ19

Skip the rabbit hole. Ship it.

The exact, working implementation, generalised so you drop it into your own project and move on.

Get the kit โ€” โ‚ฌ19

Instant download ยท single-project commercial use ย ยทย  โœ“ 30-day money-back guarantee

Want all three Supabase kits? Get the bundle for โ‚ฌ39 โ€” a third off.