Skip to main content

Overview

The deleteAskFredThread mutation allows you to permanently delete an AskFred conversation thread along with all its associated messages. This action is irreversible.

Arguments

id
String
required
The unique identifier of the AskFred thread to delete

Returns

Returns the deleted AskFredThread object if successful, allowing you to confirm the deletion details.

Usage Example

mutation DeleteThread($id: String!) {
  deleteAskFredThread(id: $id) {
    id
    title
    transcript_id
    user_id
    created_at
  }
}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation DeleteThread($id: String!) { deleteAskFredThread(id: $id) { id title transcript_id created_at } }",
    "variables": {
      "id": "thread_abc123"
    }
  }' \
  https://api.fireflies.ai/graphql
{
  "data": {
    "deleteAskFredThread": {
      "id": "thread_abc123",
      "title": "What were the action items from the Q4 planning meeting?",
      "transcript_id": "transcript_xyz789",
      "user_id": "user_123",
      "created_at": "2024-03-15T10:30:00Z"
    }
  }
}

Important Notes

Deletion is permanent and cannot be undone

Error Codes

The specified thread ID does not exist or you don’t have access to it