# ed machines docker rm

> ed machines docker rm in the Edith ed command line reference. Removes a container, killing it first.

- Canonical URL: https://getedith.pro/docs/cli/machines-docker/rm
- Updated: 2026-12-02

Removes a container, killing it first.

```
ed machines docker rm [--json] [--yes] <machine> <container>...
```

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<machine>` | machine name, ssh alias, id, or any unambiguous prefix | required | Which machine to act on. |
| `<container>...` | one or more container names or ids | at least one required | Which containers to remove. Docker is given all of them in one call. |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout instead of the one-line confirmation. |
| `--yes` | flag | off | Apply the removal. Without it, print the exact plan. |
| `--help`, `-h` | flag | off | Print the help for this command on stdout and exit 0. |

## `--json` shape

```json
{
  "action": "rm",
  "applied": false,
  "changed": false,
  "containers": [
    "open-webui"
  ],
  "machine": "Devbox",
  "targets": [
    "Devbox:container:open-webui"
  ]
}
```

## Examples

```
ed machines devbox docker rm open-webui
ed machines devbox docker rm b556d7fef23e --yes --json
```

## Behaviour notes

The remote command is `docker rm -f <container>`, so this kills a running
container and removes it in one step rather than refusing to touch it. Without
`--yes`, the command prints the resolved machine and every container target,
changes nothing, and never opens an SSH connection. The container's
writable layer goes with it, and anything the container wrote outside a volume
or a bind mount is gone. Named volumes survive, because `-v` is never passed.

Runs under a 120 second ceiling. Failure exits 1 with docker's stderr as the
hint. This is the Docker window's remove button, running the same command.

## Where to go next

- [`ed machines docker`](https://getedith.pro/docs/cli/machines-docker), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
