channels
channels
channel-accounts

Cleanup Orphaned Threads

Clean up orphaned threads from deleted channel accounts.

Finds threads in workspace DB that reference channel_account_ids that no longer exist in the shared DB, and deletes them along with their messages.

This is useful after:

  • Account deletion that failed to clean up properly
  • Database migration issues
  • Manual account removal

Args: channel: Channel name to clean up

Returns: Cleanup statistics

post/api/channels/{channel}/cleanup-orphaned

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/channels/{channel}/cleanup-orphaned
  • Auth: none declared

Path parameters

channelstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 5 revisions of this API.