How to request deletion
Option A — In-app (fastest)
- Open PhysioAI EMR → Profile / Settings → Delete Account.
- Confirm. App calls
supabase/functions/delete-accountwith your Auth JWT. - Function verifies requesting user = userId (403 otherwise), cascades, calls
auth.admin.deleteUser. - You get
{ success: true }or an error to contact support.
Option B — Email (required for full PHI purge until migration lands)
- Email support@physioai.in subject “Data Deletion Request — EMR”.
- Include: registered email + phone, therapist name / clinic, slug if published, statement “Delete my EMR workspace and all associated patient/clinical/billing data”.
- We verify (reply-to + OTP / invoice check), confirm + complete within 30 days (target 7 days).
Known gap (Sept 13 2026): checked-in delete-account function enumerates Prep-Hub tables only, not yet emr_*. Until cascade migration is release-noted, use Option B for any PHI purge — we manually cascade all emr_* + storage.
What gets deleted
emr_users, emr_settings, emr_availability, emr_public_profiles(unpublished + purged)emr_patients(hard delete after soft-archive check)emr_soap_notes, emr_assessments, emr_protocols, emr_protocol_assignments, emr_exercise_prescriptions, emr_home_programs, emr_alertsemr_appointments, emr_home_visitsemr_invoices, emr_payments, emr_revenue— except anonymised / legal-hold minimaemr_communications(bodies purged; suppression hash kept)- Voice audio / transcripts / Corti artefacts (30-day queue; saved intake purged on request)
- Storage objects under your prefix +
auth.users+ push bindings
Backups/replicas clear on rolling propagation. Deletion certificate + verification hash logged for audit.
What is retained (and why)
| Kept | Why / basis |
|---|---|
| Invoices / tax ledger minima (anonymised where possible), up to 8y FY-end | Companies / Income-tax; DPDP §8(7) |
| Aggregated / anonymised analytics indefinitely | Improvement; no re-identification |
| Suppression list (email/phone hash) | Prevent re-contact after withdrawal |
| Litigation-hold material | Paused until hold + 14 days |
| Deletion certificate (DEL-YYYY-NNNN) | Prove compliance |
Timeline & rights
Acknowledge + verify → manifest → DPO review → HIGH-priority queue → execute → certificate. Standard SLA 30 days; comms suppression best-effort 72h. Rights (DPDP §§11–14, GDPR, CCPA) via support@physioai.in. Patients: contact your therapist first.
Details: EMR Privacy §11–§13 · EMR Terms · General Delete Account
