Mutation
mutation DeleteThread($input: DeleteThreadInput!) {
deleteThread(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"deleteThread": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
deleteThread
Permanently delete a thread and all its associated data from Plain. This action is irreversible — use with caution. Requires the thread:delete permission.
MUTATION
deleteThread(input: DeleteThreadInput!): DeleteThreadOutput!Arguments
input
required
Returns
error
Mutation
mutation DeleteThread($input: DeleteThreadInput!) {
deleteThread(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"deleteThread": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

