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.
Deleted snippets are soft-deleted — they’re hidden from the snippet picker but remain queryable by ID with isDeleted: true. This preserves the history of any replies that referenced the snippet. This operation requires the following permissions:
  • snippet:delete
Mutation
mutation deleteSnippet($input: DeleteSnippetInput!) {
  deleteSnippet(input: $input) {
    snippet {
      id
      isDeleted
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "snippetId": "sn_01HXXXXXXXXXXXXXXXXXXXXXXX"
  }
}