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.
Two-step: call without confirm to get a preview, show it to the user, and only after they approve this exact deletion call again with the same image_ids and confirm set to the preview's confirm_token.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "delete_image_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Image source: name, identifier, resource path ('image-source:...'), or 24-char hex ID. With confirm, the hex ID from the preview. | |
| confirm | No | The confirm_token from the preview; performs the deletion it described. Omit to 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. |