MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteMessage

Method deleteMessage

packages/node-runtime/src/ai/chats.ts:650–654  ·  view source on GitHub ↗
(messageId: string)

Source from the content-addressed store, hash-verified

648 }
649
650 deleteMessage(messageId: string): boolean {
651 const db = this.getDb()
652 const result = db.prepare('DELETE FROM ai_message WHERE id = ?').run(messageId)
653 return result.changes > 0
654 }
655
656 deleteMessagesFrom(aiChatId: string, messageId: string): void {
657 const db = this.getDb()

Callers 1

deleteMessageFunction · 0.80

Calls 3

getDbMethod · 0.95
runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected