Interface: DeleteTenantResponse
@kortexya/reasoninglayer / DeleteTenantResponse
Interface: DeleteTenantResponse
Section titled “Interface: DeleteTenantResponse”Defined in: src/types/admin.ts:349
Response of a tenant delete.
Remarks
Section titled “Remarks”The wipe report — identical in shape and content to a clear, because the
delete IS the clear plus the tombstone — plus the tombstone outcome, so a
caller can tell “cleared, still exists” from “deleted, id retired” without
re-deriving either. The tenant’s UUID is refused with 410 everywhere
afterwards and cannot be recreated; there is no un-delete.
Extends
Section titled “Extends”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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.artifactFilesDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.bindingsDeleted
cacheInvalidated
Section titled “cacheInvalidated”cacheInvalidated:
boolean
Defined in: src/types/admin.ts:163
Whether the cache was invalidated.
Inherited from
Section titled “Inherited from”ClearTenantResponse.cacheInvalidated
deletedAt
Section titled “deletedAt”deletedAt:
string
Defined in: src/types/admin.ts:351
When the tombstone was written. A delete is permanent; this is the record of when it happened.
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.derivedFactsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.dmPairingStateDeleted
fingerprintsDeleted
Section titled “fingerprintsDeleted”fingerprintsDeleted:
number
Defined in: src/types/admin.ts:144
Number of document fingerprints deleted.
Inherited from
Section titled “Inherited from”ClearTenantResponse.fingerprintsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.inboxItemsDeleted
inferenceStateCleared
Section titled “inferenceStateCleared”inferenceStateCleared:
boolean
Defined in: src/types/admin.ts:160
Whether the in-memory inference state was cleared.
Inherited from
Section titled “Inherited from”ClearTenantResponse.inferenceStateCleared
message
Section titled “message”message:
string
Defined in: src/types/admin.ts:123
Human-readable summary message.
Inherited from
Section titled “Inherited from”metaRecordsDeleted
Section titled “metaRecordsDeleted”metaRecordsDeleted:
number
Defined in: src/types/admin.ts:135
Number of meta records deleted (rules, named queries, etc.).
Inherited from
Section titled “Inherited from”ClearTenantResponse.metaRecordsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.pluginInstallsDeleted
residuationsDeleted
Section titled “residuationsDeleted”residuationsDeleted:
number
Defined in: src/types/admin.ts:138
Number of residuation records deleted.
Inherited from
Section titled “Inherited from”ClearTenantResponse.residuationsDeleted
reviewsDeleted
Section titled “reviewsDeleted”reviewsDeleted:
number
Defined in: src/types/admin.ts:141
Number of review-related records deleted.
Inherited from
Section titled “Inherited from”ClearTenantResponse.reviewsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.rowsDeletedTotal
sessionsDeleted
Section titled “sessionsDeleted”sessionsDeleted:
number
Defined in: src/types/admin.ts:132
Number of ingestion sessions deleted.
Inherited from
Section titled “Inherited from”ClearTenantResponse.sessionsDeleted
sortsDeleted
Section titled “sortsDeleted”sortsDeleted:
boolean
Defined in: src/types/admin.ts:157
Whether the sort hierarchy snapshot was deleted.
Inherited from
Section titled “Inherited from”ClearTenantResponse.sortsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.sourceFilesDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.tablesRetained
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.tablesWiped
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/admin.ts:126
The tenant whose data was cleared.
Inherited from
Section titled “Inherited from”termsDeleted
Section titled “termsDeleted”termsDeleted:
number
Defined in: src/types/admin.ts:129
Number of terms deleted from persistent storage.
Inherited from
Section titled “Inherited from”ClearTenantResponse.termsDeleted
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.
Inherited from
Section titled “Inherited from”ClearTenantResponse.termVersionsDeleted
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.