Delete account & all data (Settings → Account → Danger zone). Opens a
confirmation that requires typing your email address, and warns that any spaces
you've shared will be removed for your collaborators too. DELETE /api/account
removes your Storage uploads, then deletes the auth user via the service-role
admin client — which cascades every related row: the spaces you own and
their cards, edges, drawings, and AI chats, plus your memberships, Clip AI keys,
personality (soul.md), connected apps, and usage. The route re-derives the user
from the session cookie, so a caller can only ever delete their own account.
On success the local session is cleared and you're returned to a signed-out home.