Share feedback
Answers are generated based on the documentation.

sbx template rm

DescriptionRemove a template image
Usagesbx template rm TAG|DIGEST|ID|NAME [flags]

Description

Remove a template image from the sandbox runtime's image store.

Identify the image by tag, repository digest (REPOSITORY@sha256:DIGEST), or image ID (full or prefix). Use "sbx template ls --all --digests" to see available images and their digests.

With --cloud: Remove a cloud sandbox template by name or tmpl_* ID. Use "sbx --cloud template ls" to list templates.

Options

OptionDefaultDescription
-f, --forceSkip confirmation prompts
--formatOutput format: table, json or yaml
--jsonOutput in JSON format

Global options

OptionDefaultDescription
--cloudDispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
-D, --debugEnable debug logging
--no-inputNever prompt; commands that need an answer fail with the command to run instead

Examples

# Remove by tag
sbx template rm myimage:v1.0

# Remove by image ID (prefix)
sbx template rm abc123

# Remove by repository digest
sbx template rm myimage@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

# Cloud: remove by name
sbx --cloud template rm my-template

# Cloud: remove by tmpl_* id
sbx --cloud template rm tmpl_abc123