Skip to content

Docs

delete_snippet

Delete a snippet. Drafts that already use its text keep it.

Delete a snippet. Drafts that already use its text keep it.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "snippetId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "snippetId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "deleted": {
      "const": true,
      "type": "boolean"
    },
    "snippetId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "deleted",
    "snippetId"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": true,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Delete a snippet"
}