remove_container
Delete Docker containers from your VPS using the Portainer API. Specify container ID/name, force removal if running, and optionally remove associated volumes.
Instructions
Remove a container
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": "remove_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container ID or name | |
| force | No | Force removal even if running | |
| volumes | No | Remove associated volumes |