isDeleted: true. This preserves the history of any replies that referenced the snippet.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
snippet:delete
Mutation
Variables
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Soft-delete a snippet, hiding it from the picker while keeping reply history intact.
isDeleted: true. This preserves the history of any replies that referenced the snippet.
snippet:deletemutation deleteSnippet($input: DeleteSnippetInput!) {
deleteSnippet(input: $input) {
snippet {
id
isDeleted
}
error {
message
type
code
fields {
field
message
type
}
}
}
}
{
"input": {
"snippetId": "sn_01HXXXXXXXXXXXXXXXXXXXXXXX"
}
}
Was this page helpful?
