Deletes a specific message from an existing conversation identified by a conversation hash.
const conversationHash = '0x...'; const messageIndex = 1n; const txResponse = await chat.deleteMessage(conversationHash, messageIndex);
A promise that resolves to the response from the
sendTransaction method on the
walletClient provided by the developer on
The unique identifier (hash) of the target conversation from which the message will be deleted.
The position or index of the message you want to delete from the specified conversation. Make sure the index corresponds to the exact position of the message within the conversation.