remove_container
Delete a container and clean up its associated resources; use the force option to bypass prompts when necessary.
Instructions
Clean up container resources by removing a container.
In Apple Container 1.7.1+, `container list` hides `cluster` nodes even with `--all`,
and `start`, `stop`, `kill`, and `delete` report named cluster nodes as not found
(`inspect`, `logs`, `exec`, `stats`, and `clean` continue to work on named cluster
nodes).
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": {
"container_id": "<container_id>"
},
"name": "remove_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |