Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.
Deleting a thread removes it from the inbox. The thread is soft-deleted, so you can still recover it through Plain’s support if needed shortly after, but it should be treated as a destructive action. This operation requires the following permissions:
  • thread:delete
Mutation
mutation deleteThread($input: DeleteThreadInput!) {
  deleteThread(input: $input) {
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "threadId": "th_01H8H46YPB2S4MAJM382FG9423"
  }
}