image_remove
Delete a local Docker image by name or ID. Use force to remove images referenced by stopped containers or multiple tags, and noprune to keep untagged parent layers.
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 |