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
}
'import requests
url = "https://pria.praxislxp.com/api/user/data"
payload = {
"dialogues": True,
"vault": True,
"memory": True,
"assistants": True,
"feedback": True,
"sessions": True
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dialogues: true,
vault: true,
memory: true,
assistants: true,
feedback: true,
sessions: true
})
};
fetch('https://pria.praxislxp.com/api/user/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'dialogues' => true,
'vault' => true,
'memory' => true,
'assistants' => true,
'feedback' => true,
'sessions' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/data"
payload := strings.NewReader("{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pria.praxislxp.com/api/user/data")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"dialoguesForgotten": 123,
"uploadsDeleted": 123,
"bytesFreed": 123,
"memoryDeleted": 123,
"assistantsDeleted": 123,
"feedbackDeleted": 123,
"sessionsDeleted": 123,
"compactionCachePurged": 123,
"uploadsFailed": [
{
"uploadId": "<string>",
"error": "<string>"
}
]
}Scoped soft-delete of personal data
Atomic per-class soft-delete. At least one of dialogues / vault must be true. Personal-scope only — institution rows are filtered out before any mutation. Idempotent: re-running returns zeros once everything is already soft-deleted. Vault deletes go through rag.fileDelete to clear embeddings + KAG cascade + physical file before flipping status='deleted' and stamping deleted_at. Per-upload failures from rag.fileDelete are collected in uploadsFailed and the status flip is skipped on those rows so a retry can re-attempt the physical removal.
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
}
'import requests
url = "https://pria.praxislxp.com/api/user/data"
payload = {
"dialogues": True,
"vault": True,
"memory": True,
"assistants": True,
"feedback": True,
"sessions": True
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dialogues: true,
vault: true,
memory: true,
assistants: true,
feedback: true,
sessions: true
})
};
fetch('https://pria.praxislxp.com/api/user/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'dialogues' => true,
'vault' => true,
'memory' => true,
'assistants' => true,
'feedback' => true,
'sessions' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/data"
payload := strings.NewReader("{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pria.praxislxp.com/api/user/data")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dialogues\": true,\n \"vault\": true,\n \"memory\": true,\n \"assistants\": true,\n \"feedback\": true,\n \"sessions\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"dialoguesForgotten": 123,
"uploadsDeleted": 123,
"bytesFreed": 123,
"memoryDeleted": 123,
"assistantsDeleted": 123,
"feedbackDeleted": 123,
"sessionsDeleted": 123,
"compactionCachePurged": 123,
"uploadsFailed": [
{
"uploadId": "<string>",
"error": "<string>"
}
]
}Authorizations
JWT token passed in x-access-token header
Body
At least one of dialogues, vault, memory, assistants, feedback, or sessions must be true.
Flip personal History.forgotten to true (records survive for billing aggregates). Cascades: historyCompactionCache rows derived from these dialogues are hard-deleted.
Soft-delete personal uploads (status='deleted'), remove embeddings + physical file
Hard-delete the user's personal Memory rows (institution:null). Mirrors DELETE /api/user/memory/personal scope semantics.
Soft-delete the user's personal Assistant rows (status -> 'deleted'). Rows survive for historical references (audit, conversation backfill) but are hidden from the chooser.
Soft-delete Feedback rows authored by the user (status -> 'deleted'). Scope is user only — institutional context at submission time is ignored.
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
true
Personal Memory rows hard-deleted by this request
Personal Assistant rows soft-deleted by this request
Feedback rows soft-deleted by this request
Session records hard-deleted by this request
HistoryCompactionCache rows hard-deleted as a cascade from dialogues delete
Per-upload failures from the rag.fileDelete call (status flip is skipped on these so a retry can re-attempt)
Show child attributes
Show child attributes
Was this page helpful?