> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canopylabs.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# canopy.deleteDialogue

<RequestExample>
  ```javascript index.js
  await canopy.deleteDialogue({
    dialogueIndex: 12
  })
  ```
</RequestExample>

Deletes a dialogue at a given `dialogueIndex` from the `messageThread`. More information
<a href="/documentation/llm-concepts#delete-dialogue"> here </a>.

### Parameters

<ParamField path="dialogueIndex" type="number" required="true">
  `dialogueIndex` must be less than the length of the `messageThread` array.
</ParamField>

### Response

You will get a <b>JSON</b> response with the following fields:

<ResponseField name="success" type="boolean" />

<ResponseField name="timestamp" type="number" />

<ResponseField name="messageThread" type="array">
  An array of objects, where each object is a `dialogue`.
</ResponseField>
