snippet_delete tool reference for WPCode / Code Snippets / Woody
Writedeletes a snippet by ID.
Description
deletes a snippet by ID.
What it is for
- Cleaning obsolete snippets.
Example use case
removing dead code.
Sample prompt
Delete snippet ID 19 because it is no longer used and has been replaced elsewhere.
Sample response
{
"tool": "snippet_delete",
"status": "ok",
"updated": true
}
What does snippet_delete do?
deletes a snippet by ID.
Does snippet_delete modify site data?
Yes. It can create, update, activate, deactivate, or delete data depending on arguments.
Which capability is commonly required?
It usually runs with controls compatible with manage_options and the active MCP profile.
How should snippet_delete be used safely?
Require confirmation, test in staging first, and verify rollback coverage.
Which plugin is required?
WPCode / Code Snippets / Woody must be installed and active in the target WordPress environment.
