Health

Delete the current user’s health data, scoped by category

Delegates to HealthDataDeletionService.deleteHealthData. Two independently-selectable groups: includeDeviceSynced covers health_samples, health_device_connections, health_sync_anchors, health_readiness_snapshots, user_source_preferences, health_baselines (the actual "synced health data" PP §2.3 refers to). Clearing health_device_connections returns health_last_synced_at in GET /users/profile to null, which mobile reads as "not yet synced". includeManualLogs covers bowel_movement_logs, digestive_symptom_logs, diary_entries, user_health_goals — never synced from a device. At least one must be true. If HealthKit/Health Connect permission is still granted at the OS level and includeDeviceSynced was selected, the next sync will re-pull that data — the mobile client is responsible for warning the user before they confirm.

delete/api/health/data/me

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/health/data/me
  • Auth
    HTTP bearer

Query parameters

includeDeviceSyncedboolean

Delete device-synced data (samples, connections, anchors, readiness). Default true.

includeManualLogsboolean

Delete manually-logged data (bowel movements, digestive symptoms, diary, goals). Default false.

Response

unknown required

Example response

{
  "health_samples": 4821,
  "health_device_connections": 2,
  "health_sync_anchors": 12,
  "health_readiness_snapshots": 90,
  "user_source_preferences": 5,
  "health_baselines": 3
}

Changes

No recorded changes to this operation across all 34 revisions of this API.