Skip to main content
await canopy.deleteDialogue({
  dialogueIndex: 12
})
Deletes a dialogue at a given dialogueIndex from the messageThread. More information here .

Parameters

dialogueIndex
number
required
dialogueIndex must be less than the length of the messageThread array.

Response

You will get a JSON response with the following fields:
success
boolean
timestamp
number
messageThread
array
An array of objects, where each object is a dialogue.