Share feedback
Answers are generated based on the documentation.

docker sandbox rm

DescriptionRemove one or more sandboxes
Usagedocker sandbox rm SANDBOX [SANDBOX...]
Aliases
docker sandbox remove

Description

Warning

The Docker Desktop-integrated docker sandbox commands are deprecated and replaced by the standalone sbx CLI. This deprecation applies only to the Docker Desktop integration, not to Docker Sandboxes.

Remove one or more sandboxes and all their associated resources.

This command will:

  • Check if the sandbox exists
  • Remove the sandbox and clean up its associated resources

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)