Skip to main content
DELETE
/
api
/
user
/
data
Scoped soft-delete of personal data
curl --request DELETE \
  --url https://pria.praxislxp.com/api/user/data \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "dialogues": true,
  "vault": true,
  "memory": true,
  "assistants": true,
  "feedback": true,
  "sessions": true
}
'
{
  "success": true,
  "dialoguesForgotten": 123,
  "uploadsDeleted": 123,
  "bytesFreed": 123,
  "memoryDeleted": 123,
  "assistantsDeleted": 123,
  "feedbackDeleted": 123,
  "sessionsDeleted": 123,
  "compactionCachePurged": 123,
  "uploadsFailed": [
    {
      "uploadId": "<string>",
      "error": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

At least one of dialogues, vault, memory, assistants, feedback, or sessions must be true.

dialogues
boolean

Flip personal History.forgotten to true (records survive for billing aggregates). Cascades: historyCompactionCache rows derived from these dialogues are hard-deleted.

vault
boolean

Soft-delete personal uploads (status='deleted'), remove embeddings + physical file

memory
boolean

Hard-delete the user's personal Memory rows (institution:null). Mirrors DELETE /api/user/memory/personal scope semantics.

assistants
boolean

Soft-delete the user's personal Assistant rows (status -> 'deleted'). Rows survive for historical references (audit, conversation backfill) but are hidden from the chooser.

feedback
boolean

Soft-delete Feedback rows authored by the user (status -> 'deleted'). Scope is user only — institutional context at submission time is ignored.

sessions
boolean

Hard-delete login session records (IP / browser / device fingerprints). Does NOT log the user out of other tabs — the JWT cookie is independent of these audit rows.

Response

Counts of what was deleted

success
boolean
Example:

true

dialoguesForgotten
integer
uploadsDeleted
integer
bytesFreed
integer
memoryDeleted
integer

Personal Memory rows hard-deleted by this request

assistantsDeleted
integer

Personal Assistant rows soft-deleted by this request

feedbackDeleted
integer

Feedback rows soft-deleted by this request

sessionsDeleted
integer

Session records hard-deleted by this request

compactionCachePurged
integer

HistoryCompactionCache rows hard-deleted as a cascade from dialogues delete

uploadsFailed
object[]

Per-upload failures from the rag.fileDelete call (status flip is skipped on these so a retry can re-attempt)