Code & Dev Compatible: claude

User Data Export and Account Deletion

Complexity Level: Expert
Prompt Code Block

Specify a data export and an account deletion flow. Export must be complete enough to be honest. Deletion must have a defined cascade. PRODUCT User data lives in: [TABLES] Files in: [BUCKET] Third parties that also have data: [EMAIL TOOL, ANALYTICS] Legal hold exception: [YES | NO] Soft delete today: [YES | NO] EXPORT 1) The job: authenticated request, rate limited, emailed link that expires, file contains the categories I listed. Format: JSON plus a CSV per table where that is readable. 2) What is excluded and why (other users' content, server logs beyond [N] days). 3) How we prove the export belongs to the requester. DELETION 1) The distinction between deactivate and delete. 2) The order of deletes and the foreign keys. Anonymize rows we must keep for other users (comments become "deleted user") versus hard-delete rows that are only theirs. 3) Files, sessions, and the third parties: the API call or the manual step, listed honestly. 4) The confirmation email and the grace period: [DAYS OR NONE]. 5) A test plan on a fixture user. Do not claim a third party is deleted if I did not name an API for it. Mark those as manual.

🌟 Example Output / Preview

### Generated Component Preview: ```typescript // Fully validated modern structure import { z } from 'zod'; export const RequestSchema = z.object({ id: z.string().uuid(), createdAt: z.date().default(() => new Date()), data: z.record(z.string(), z.any()) }); export type ValidatedRequest = z.infer<typeof RequestSchema>; ```

Prompt Metadata

DifficultyExpert
Compatibilityclaude

Primary Use Cases:

  • •Legacy code modernization & technical refactoring
  • •Full-stack layout generation & component structuring
  • •CI/CD workflow automation & unit/E2E testing suites

Associated Tags:

#gdpr #privacy #postgres #typescript

💡 Pro Tips & Advice

1. Use bracketed items: Be sure to fill out all [PLACEHOLDER] elements with specific details before sending the prompt to the AI model.

2. Adjust temperature: For creative tasks, set AI temperature higher (e.g., 0.8), or lower (e.g., 0.2) for strict coding/technical tasks.

🔗 Related AI Prompts

Code & Dev
★ Featured

Full SaaS Landing Page Build Spec (SEO + Conversion)

You are a Staff Product Designer + Frontend Engineer + SEO strategist. Build a complete, production-ready marketing landing page f...

Compatible:claudeDiff:Advanced
#landing-page #saas #seo #nextjs #tailwind
Code & Dev
★ Featured 🔥 Trending

SaaS Analytics Dashboard Full Build Spec

You are a Principal Product Designer + Frontend Lead. Design and specify a complete [LIGHT | DARK] analytics dashboard for [PRODUC...

Compatible:claudeDiff:Intermediate
#dashboard #saas #ui #tailwind #seo
Code & Dev

SaaS Admin Panel Dashboard Build Spec

Design a full internal Admin Dashboard for [PRODUCT_NAME] used by [ADMIN_ROLE: support | ops | super-admin]. --- 🎯 CONTEXT Adm...

Compatible:claudeDiff:Intermediate
#admin #dashboard #saas #crud #tailwind