Interface: ClearTenantResponse
@kortexya/reasoninglayer / ClearTenantResponse
Interface: ClearTenantResponse
Section titled “Interface: ClearTenantResponse”Defined in: src/types/admin.ts:121
Response for the clear-tenant-data operation.
Remarks
Section titled “Remarks”Reports exactly what was wiped for a specific tenant across all storage backends so operators can verify the operation succeeded. Other tenants are unaffected.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”artifactFilesDeleted?
Section titled “artifactFilesDeleted?”
optionalartifactFilesDeleted?:number
Defined in: src/types/admin.ts:241
Number of retained RDF artifacts erased through the configured bucket provider. Absent when the engine did not report it.
bindingsDeleted?
Section titled “bindingsDeleted?”
optionalbindingsDeleted?:number
Defined in: src/types/admin.ts:193
Number of SQL ontology bindings deleted for this tenant.
Remarks
Section titled “Remarks”A binding names the source, table and columns a tenant’s data lives in, so it is tenant data in its own right and goes with the tenant.
cacheInvalidated
Section titled “cacheInvalidated”cacheInvalidated:
boolean
Defined in: src/types/admin.ts:163
Whether the cache was invalidated.
derivedFactsDeleted?
Section titled “derivedFactsDeleted?”
optionalderivedFactsDeleted?:number
Defined in: src/types/admin.ts:201
Number of materialized derived facts deleted for this tenant.
Remarks
Section titled “Remarks”Derived Psi-terms go with the facts they were derived from.
dmPairingStateDeleted
Section titled “dmPairingStateDeleted”dmPairingStateDeleted:
number
Defined in: src/types/admin.ts:259
Number of DM pairing records erased for this tenant: channel policies, allowlisted senders and pairing requests, summed.
Remarks
Section titled “Remarks”Not included in ClearTenantResponse.rowsDeletedTotal.
fingerprintsDeleted
Section titled “fingerprintsDeleted”fingerprintsDeleted:
number
Defined in: src/types/admin.ts:144
Number of document fingerprints deleted.
inboxItemsDeleted
Section titled “inboxItemsDeleted”inboxItemsDeleted:
number
Defined in: src/types/admin.ts:250
Number of unified-inbox items erased for this tenant.
Remarks
Section titled “Remarks”Inbox items are durable tenant data that carry channel message bodies. Not included in ClearTenantResponse.rowsDeletedTotal.
inferenceStateCleared
Section titled “inferenceStateCleared”inferenceStateCleared:
boolean
Defined in: src/types/admin.ts:160
Whether the in-memory inference state was cleared.
message
Section titled “message”message:
string
Defined in: src/types/admin.ts:123
Human-readable summary message.
metaRecordsDeleted
Section titled “metaRecordsDeleted”metaRecordsDeleted:
number
Defined in: src/types/admin.ts:135
Number of meta records deleted (rules, named queries, etc.).
pluginInstallsDeleted?
Section titled “pluginInstallsDeleted?”
optionalpluginInstallsDeleted?:number
Defined in: src/types/admin.ts:184
Number of plugin-marketplace install records forgotten for this tenant.
Remarks
Section titled “Remarks”Reported separately from the persistent table sweep’s row count: the durable rows and the in-memory registry are two stores, and this is the one the install listing reads.
residuationsDeleted
Section titled “residuationsDeleted”residuationsDeleted:
number
Defined in: src/types/admin.ts:138
Number of residuation records deleted.
reviewsDeleted
Section titled “reviewsDeleted”reviewsDeleted:
number
Defined in: src/types/admin.ts:141
Number of review-related records deleted.
rowsDeletedTotal?
Section titled “rowsDeletedTotal?”
optionalrowsDeletedTotal?:number
Defined in: src/types/admin.ts:224
Total rows deleted across every table in ClearTenantResponse.tablesWiped.
Remarks
Section titled “Remarks”Counts the tables that have no named counter on this response, which is
most of them — the named counters were never the full set. It does NOT
count the inbox items or the DM pairing records: the engine erases those
through their stores before the table sweep, so inbox_items can appear
in tablesWiped with none of its rows counted here. Read
ClearTenantResponse.inboxItemsDeleted and
ClearTenantResponse.dmPairingStateDeleted for them.
sessionsDeleted
Section titled “sessionsDeleted”sessionsDeleted:
number
Defined in: src/types/admin.ts:132
Number of ingestion sessions deleted.
sortsDeleted
Section titled “sortsDeleted”sortsDeleted:
boolean
Defined in: src/types/admin.ts:157
Whether the sort hierarchy snapshot was deleted.
sourceFilesDeleted
Section titled “sourceFilesDeleted”sourceFilesDeleted:
number
Defined in: src/types/admin.ts:235
Number of uploaded source files (CSV, Parquet, SQLite uploads) erased for this tenant.
Remarks
Section titled “Remarks”The upload store holds files, not rows, so the table sweep cannot see it.
A store that cannot be erased fails the wipe with 500 instead of
reporting a clean one.
tablesRetained?
Section titled “tablesRetained?”
optionaltablesRetained?:RetainedTableDto[]
Defined in: src/types/admin.ts:268
Tenant-scoped tables deliberately left intact, each with its reason.
Remarks
Section titled “Remarks”Non-empty means this erasure was deliberately partial: a retention policy kept these tables. Check it before treating the wipe as complete erasure.
tablesWiped?
Section titled “tablesWiped?”
optionaltablesWiped?:string[]
Defined in: src/types/admin.ts:210
Every table the wipe deleted from, children before parents.
Remarks
Section titled “Remarks”Derived from the live schema, not from a fixed list, so a table added by a later engine migration appears here without an SDK change.
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/admin.ts:126
The tenant whose data was cleared.
termsDeleted
Section titled “termsDeleted”termsDeleted:
number
Defined in: src/types/admin.ts:129
Number of terms deleted from persistent storage.
termVersionsDeleted?
Section titled “termVersionsDeleted?”
optionaltermVersionsDeleted?:number
Defined in: src/types/admin.ts:154
Recorded term versions deleted with the terms.
Remarks
Section titled “Remarks”A tenant’s history is part of its data: clearing the tenant clears it, and the count says how much went so a caller is not left assuming the history survived.
vectorsDeleted
Section titled “vectorsDeleted”vectorsDeleted:
number
Defined in: src/types/admin.ts:174
Number of vector-store points deleted for this tenant.
Remarks
Section titled “Remarks”Reported separately because it is the one count an erasure request cannot verify any other way: vector payloads carry the embedded text, so a wipe that left them behind would report every table emptied while the tenant’s data stayed readable by similarity search.