Skip to main content
Glama

remove_model

Delete a model file from your local ComfyUI models directories. The tool verifies the path is within configured model roots to prevent unauthorized access.

Instructions

Delete a model file from the local ComfyUI models directories. Resolves the path across ALL configured roots — the primary /models AND every directory in extra_model_paths.yaml / extra_models_config.yaml (e.g. models stored on another drive like E:) — the same roots ComfyUI loads from. The path must stay within a known root (path traversal and absolute escapes are rejected). LOCAL-ONLY: deletes from the local filesystem, so it is not supported against a remote ComfyUI (remove the file on the host).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesModel file path relative to the ComfyUI models/ directory (e.g. 'checkpoints/sd_xl_base_1.0.safetensors'). The leading segment is the category used to locate the file in extra roots too.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses that the tool resolves paths across all configured roots, rejects path traversal/absolute escapes, and is local-only. This provides solid behavioral insight beyond a simple 'delete' statement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is mostly efficient, conveying key points in a few sentences. It could be slightly tightened (e.g., the parenthetical about extra roots is a bit dense), but it's still well-structured and front-loaded with the core action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one parameter, no output schema), the description is complete. It covers the action, path resolution, security restrictions, and local-only constraint. The agent has sufficient information to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds context beyond the schema: it explains how the path is resolved across multiple roots and that the leading segment is the category. This extra meaning helps the agent understand path construction.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it deletes a model file from local ComfyUI models directories, specifying it resolves across all configured roots. This distinguishes it from siblings like remove_extra_path (which removes a path entry) and download_model (downloads).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use (delete a model file) and explicitly states it's local-only (not for remote ComfyUI). It also explains path resolution across multiple roots. However, it does not explicitly list alternative tools for remote deletion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artokun/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server