image_delete_unused
Löscht Bilder die nicht verwendet werden (VORSICHT!)
This record as markdown: /tools/c-sakel-wp-mcp-server/image-delete-unused.md
What image_delete_unused does on WordPress MCP Server
AI agents call image_delete_unused to permanently remove resources in WordPress MCP Server, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
Why image_delete_unused is rated Critical
This tool permanently removes image files from the WordPress installation. Even though it targets 'unused' images, the deletion operation is irreversible and cannot be undone by normal means. The warning in the description ('VORSICHT!' = 'WARNING!') confirms the destructive nature. An AI agent misusing this could permanently remove legitimate image assets, causing data loss.
From the tool's definition Tool name 'image_delete_unused' and description 'Löscht Bilder die nicht verwendet werden (VORSICHT!)' [Deletes images that are not used (WARNING!)] explicitly performs irreversible deletion of media files.
Attacks that exploit this kind of access
The rule that runs image_delete_unused safely
PolicyLayer is an MCP gateway: it sits between your AI agents and WordPress MCP Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For image_delete_unused, this is the rule to start with:
image_delete_unused is removed from the agent's tool list entirely, so the agent never calls it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect WordPress MCP Server, apply this rule, and every image_delete_unused call is checked against it from then on.
Questions about image_delete_unused
Löscht Bilder die nicht verwendet werden (VORSICHT!). It is categorised as a Destructive tool in the WordPress MCP Server MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
Register the WordPress MCP Server MCP server in PolicyLayer and add a rule for image_delete_unused: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches WordPress MCP Server. Nothing to install.
image_delete_unused is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the image_delete_unused rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for image_delete_unused. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
image_delete_unused is provided by the WordPress MCP Server MCP server (c-sakel/wp-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on WordPress MCP Server, and thousands of servers like it.
Across the catalogue