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
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Model 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. |