---
title: "Api V1 Profile Delete"
method: POST
path: "/api_v1_profile_delete"
---

# Api V1 Profile Delete

`POST /api_v1_profile_delete`

## Request

- Base URL: `https://jyotish-api.bda.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://jyotish-api.bda.ai/api_v1_profile_delete`
- Auth: none declared

GDPR right-to-be-forgotten — hard-deletes the profile and all related rows.

IDENTITY MUST BE PROVEN, NOT ASSERTED (architecture.html F1). This path is
irreversible, so it fails closed: it deletes only for an identity the SERVER
verified.

The service has no server-verified identity carrier: the site signs in
through the Wix Members Area and Render never receives a token it can check.
A caller-supplied member_id or session_id is not proof of ownership —
normalize_member_id merely strips a "wix:" prefix and verifies nothing, and
get_user_profile_by_identity matches on ('wix:' || member_id) and on
session_id with no ownership check. Honouring them here would let an
unauthenticated caller holding a (non-secret) Wix member GUID permanently
destroy another member's profile and all related rows.

So this endpoint always answers `auth_required` — the same answer it has
given in production since before the dead token path was removed (the old
verifier could never succeed: its service-account env var is not set on
Render). Erasure requests are served by the owner-gated manual path until a
server-verifiable Wix member proof exists.

Scope note: the READ paths are deliberately left unchanged — they remain
owner-gated under the 2026-06-20 "DOCUMENT ONLY, do not touch auth" ruling.

## Request body

- ProfileDeleteRequest
  - `session_id` string, nullable
  - `member_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bda/apis/bda-jyotish-panchang-service.md) · [All operations](https://skmtc.dev/bda/apis/bda-jyotish-panchang-service/llms.txt) · [OpenAPI document](https://skmtc.dev/bda/apis/bda-jyotish-panchang-service/revisions/90f241bf4009?raw)
