image_remove
Remove a local Docker image by name or ID. Force removal even if referenced by stopped containers or multiple tags.
Instructions
Remove a local image by name or id.
Fails without force if the image is tagged by multiple names (untag first with
image_tag) or if stopped containers reference it. Running containers always block
removal regardless of force. noprune keeps untagged parent layers that would
otherwise be removed as a side-effect; leave False unless you need to preserve
the parent layers for another purpose.
args: id_or_name - Image name (with optional tag/digest) or id to remove force - Remove even if referenced by stopped containers or multiple tags noprune - Do not delete untagged intermediate parent layers returns: bool - True after removal completes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| noprune | No | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |