Skip to main content
DELETE
Scoped soft-delete of personal data

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)