command: docker sandbox rm
aliases: docker sandbox rm, docker sandbox remove
short: Remove one or more sandboxes
long: |-
    > [!WARNING]
    > The Docker Desktop-integrated `docker sandbox` commands are deprecated and
    > replaced by the standalone [`sbx` CLI](/manuals/ai/sandboxes/_index.md).
    > 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
usage: docker sandbox rm SANDBOX [SANDBOX...]
pname: docker sandbox
plink: docker_sandbox.yaml
inherited_options:
    - option: debug
      shorthand: D
      value_type: bool
      default_value: "false"
      description: Enable debug logging
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: socket
      value_type: string
      description: |
        Connect to daemon at specific socket path (for development/debugging)
      deprecated: false
      hidden: true
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
examples: |-
    ### Remove a sandbox

    ```console
    $ docker sandbox rm abc123def
    abc123def
    ```

    ### Remove multiple sandboxes

    ```console
    $ docker sandbox rm abc123def def456ghi
    abc123def
    def456ghi
    ```

    ### Remove all sandboxes

    ```console
    $ docker sandbox rm $(docker sandbox ls -q)
    ```
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false

