Remove Docker Container
docker_container_removePermanently deletes a Docker container on Unraid, force-killing it if running; optionally removes its image. Requires explicit confirmation since deletion is irreversible.
Instructions
Permanently deletes a container; force-kills it if running (no graceful stop); irreversible. with_image also attempts to delete the image (best-effort — may report success without deleting a shared/in-use image). Requires confirm: true. Needs Unraid OS 7.3+. To stop a container and keep it, use docker_container_action instead.
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": {
"id": "<id>"
},
"name": "docker_container_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container id from docker_container_list. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| with_image | No | `true` also attempts to delete the container's image (best-effort). | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |