The Wayback Machine - https://web.archive.org/web/20251217002416/https://docs.docker.com/reference/cli/docker/sandbox/rm/

docker sandbox rm

DescriptionRemove one or more sandboxes
Usagedocker sandbox rm [OPTIONS] SANDBOX [SANDBOX...]

Description

Remove one or more sandboxes by their IDs or names.

This command removes the specified sandboxes. Each sandbox is identified by its unique ID or name.

Examples

Remove a sandbox

$ docker sandbox rm abc123def
abc123def

Remove multiple sandboxes

$ docker sandbox rm abc123def def456ghi
abc123def
def456ghi

Remove all sandboxes

$ docker sandbox rm $(docker sandbox ls -q)