AckdbPurgeResponse

Response from a purge operation. Includes per-table counts of deleted records so callers can verify the expected data was removed.

Properties

dataobjectrequired
messagestringrequired

Human-readable summary of the purge operation.

sourcestring

Source that was purged (only present for source-scoped purges).

deletedobjectrequired

Counts of deleted records per table.

entitiesintegerrequired

Entities deleted. For source-scoped purges, only entities orphaned by the purge (no remaining identity links and no data from any other source) are counted.

contactsintegerrequired

Contacts deleted (people belonging to a deleted entity).

contactIdentityLinksintegerrequired

Contact identity links deleted.

contactTraitsintegerrequired

Contact trait values deleted.

identityLinksintegerrequired

Identity links deleted.

traitsintegerrequired

Entity trait values deleted.

eventsintegerrequired

Entity events deleted.

rawPayloadsintegerrequired

Raw payload records deleted.

entityContentintegerrequired

Entity content chunks (embeddings) deleted.

unresolvedContentintegerrequired

Unresolved content records deleted.

unresolvedContactsintegerrequired

Unresolved contact records deleted (people never linked to an entity).

conversationsintegerrequired

Conversation records deleted.

filesintegerrequired

Entity file records deleted.

ingestQueueintegerrequired

Queued ingest writes deleted (so a pending write cannot resurrect purged data).

memberAssignmentsintegerrequired

Member assignments deleted — ownership of a purged company/contact. The `internal_users` member roster itself is configuration and is preserved.

agentSessionsDetachedintegerrequired

Agent sessions whose `entity_id` was set to NULL. Session history (transcripts, token + cost accounting) is preserved — only the pointer to the deleted entity is dropped.

Example

AckdbPurgeResponse example
{
  "data": {
    "message": "Purged all data",
    "source": "stripe",
    "deleted": {
      "entities": 8,
      "contacts": 24,
      "contactIdentityLinks": 24,
      "contactTraits": 48,
      "identityLinks": 36,
      "traits": 112,
      "events": 112,
      "rawPayloads": 112,
      "entityContent": 112,
      "unresolvedContent": 0,
      "unresolvedContacts": 0,
      "conversations": 0,
      "files": 0,
      "ingestQueue": 0,
      "memberAssignments": 6,
      "agentSessionsDetached": 3
    }
  }
}