Remove User Kontext Preset ๐
Deleting a saved Flux Kontext editing preset
- success
- log
Kontext made instruction-based image editing a local commodity - feed it an image and a sentence like "change the jacket to red" or "remove the watermark," and it edits in place instead of regenerating from scratch. That's genuinely useful enough that people build up a personal library of go-to instructions ("turnaround sheet," "swap background to studio grey," whatever you find yourself typing over and over), and this pack lets you save those as named presets. This node is the cleanup half: it deletes one.
Where it fits. The README documents a whole workflow around this - "Kontext Presets Add and Remove Workflow" - as a screenshot rather than a parameter table, so the mechanics of saving and removing presets are shown rather than explained in text. What's clear from that workflow and from this node's own schema: presets are saved under a name somewhere by a companion "add" node in this pack, and this node's job is purely to remove one of those saved names again.
The one input. preset_name is a dropdown, not free text - it's populated dynamically from whatever Kontext presets you've actually saved. On a fresh install, or before you've saved anything, it's empty; there's nothing to select and nothing to remove. Save at least one preset with the pack's Add node first if you're trying to test this out.
Outputs. success (BOOLEAN) and log (STRING) - the same pattern as the pack's system-prompt cleanup node. success tells you whether the deletion actually happened; log carries the detail. Worth routing log into a display node the first few times you use this, since a silent delete is hard to trust blind.
Installing. ComfyUI Manager: search ComfyUI_MieNodes and install, or clone by hand: cd ComfyUI/custom_nodes && git clone https://github.com/MieMieeeee/ComfyUI-MieNodes, then restart ComfyUI. This node itself needs nothing extra - no models, no dependencies - but the Kontext workflows it supports assume you already have a Flux Kontext checkpoint set up separately, which this pack does not provide or manage.
One thing worth knowing about Kontext presets generally, if you're new to Flux Kontext: the Dev tier's license carries an anti-circumvention clause that treats any NSFW use - including LoRAs and, by extension, presets built around bypassing the model's content restrictions - as a license violation, and BFL has pressured platforms into removing NSFW Kontext derivatives on that basis. None of that is specific to this node, but it's the reason to be deliberate about what you save as a reusable preset in the first place rather than something this node itself enforces or checks.
Troubleshooting.
- Dropdown is empty, nothing to select. Normal if you haven't saved a Kontext preset yet, or if this is a fresh install - save one through this pack's Add node first.
successreturnsfalse. Checklogfor the reason; the usual culprits for a delete-by-name node are trying to remove something already gone, or a file-permission issue on whatever config the presets are stored in.- A preset you saved isn't showing up to delete. Presets are almost certainly tied to the specific ComfyUI instance and working directory where you saved them - if you're running multiple ComfyUI installs or portable copies, check you're in the same one.
- You want to edit a preset rather than remove it entirely. This node only deletes. If the pack doesn't expose an edit path, the practical workaround is to remove the old one here and re-add the corrected version with the Add node.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| preset_name | COMBO | 0 options: |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| success | BOOLEAN | โ |
| log | STRING | โ |