remove_container
Remove a container with full audit capture and optional dry-run preview. Use with caution as this action cannot be undone.
Instructions
[WRITE][risk=high] Remove a container (captures full inspect first). No undo.
The complete inspect JSON is captured before deletion for the audit trail; there is no clean inverse for a removed container. Pass dry_run=True to preview.
Args: container_id: Container id or name. force: Force-remove a running container (SIGKILL). remove_volumes: Also remove anonymous volumes attached to it. dry_run: If True, preview without removing. target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| target | No | ||
| dry_run | No | ||
| container_id | Yes | ||
| remove_volumes | No |