---
title: "delete_snippet — AI Ability"
description: "Delete a Code Glue snippet — Permanently delete a Code Glue snippet."
url: "https://wpwebhooks.org/docs/ability-delete-snippet/"
---

[WP Webhooks](/) / [Docs](/docs/) / delete\_snippet

AI Ability Pro since v1.3.0

# delete\_snippet

Delete a Code Glue snippet — Permanently delete a Code Glue snippet.

Permanently delete a Code Glue snippet. Requires confirmation. Webhooks referencing it fall back to no snippet. Registered as the WordPress Ability `flowsystems-webhook-actions/delete_snippet`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "delete_snippet", "input": { "id": … } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `full`. This step always pauses for explicit user confirmation before it runs.

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| id | param | integer | yes |  |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "delete_snippet",
  "summary": "…",
  "input": {
    "id": 4
  }
}
```

/ Related

[list\_snippets](/docs/ability-list-snippets/)[REST API reference](/webhook-wordpress-plugin-api/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"delete_snippet — AI Ability — Webhook Actions Docs","description":"Delete a Code Glue snippet — Permanently delete a Code Glue snippet.","url":"https://wpwebhooks.org/docs/ability-delete-snippet/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
