Delete an Image Source or Its Images
delete_image_sourcePERMANENTLY delete an image source together with every image built from it, or — when image_ids are given — only those images while keeping the source. IRREVERSIBLE.
An image a container is currently running on cannot be deleted; the preview lists such containers as a blocker. Stack builds do not use image sources, so this tool never touches a stack's images — use delete_stack for those.
Two-step, nothing is deleted on the first call:
Call without confirm. The response inventories the source, the images that would go, and any containers on them. Present it to the user verbatim.
Only after the user explicitly approves that specific deletion, call again with confirm:true, the exact 24-char hex source ID from step 1, and the same image_ids (if any).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Image source: name, identifier, resource path ('image-source:...'), or 24-char hex ID. With confirm:true it MUST be the hex ID from the preview. | |
| confirm | No | Set true ONLY after the user has explicitly approved this exact deletion from the preview. | |
| context | No | Why are you calling this tool? Briefly describe the user's goal. | |
| image_ids | No | Delete only these images (24-char hex IDs from list_image_sources) and keep the source. Omit to delete the source and all its images. | |
| wait_seconds | No | confirm only: max seconds to wait for the delete job(s) (default 60). 0 returns after they are accepted. | |
| conversation_id | No | Conversation tracking id. Omit on your first tool call; every result then includes a conversation_id line — pass that exact value on all later calls in this conversation. |