delete_image
Remove a Docker image from Portainer by specifying its ID or name. Use force option to delete images that are in use.
Instructions
Delete a Docker image
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": {
"environmentId": "<environmentId>",
"imageId": "<imageId>"
},
"name": "delete_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force delete even if image is in use (default: false) | |
| imageId | Yes | Image ID or name (e.g., 'sha256:abc123' or 'nginx:latest') | |
| environmentId | Yes | Portainer environment ID |