delete_image
Delete a Docker image by tag or ID, with forced removal even if referenced by stopped containers. Preview the deletion first, then confirm to permanently remove it.
Instructions
Delete a Docker image by tag or ID. Removed even if still referenced by a stopped container (force). Destructive and irreversible. The first call (confirm=False, the default) does NOT delete anything — it only previews what would happen. Only pass confirm=True after the user has explicitly agreed to the deletion. Args: image_name: image name to be deleted confirm: must be True to actually perform the deletion (default False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| image_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |