Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.

from @unified-product-graph/cli · Create & edit

upg delete

Delete an entity and its edges. Omit ID for an interactive picker.

Usage

upg delete [id] [options]

Arguments

[id]
ID of the entity to delete. Omit to open an interactive picker

Options

--file <path>
Path to .upg file
--type <type>
Filter the picker by entity type
-y, --yes
Skip confirmation (required for non-interactive use)
--force
Alias of --yes
--json
Machine-readable JSON output (the deleted node + cascaded edges)

Examples

Delete a specific entity and its edges, no prompt

upg delete n_Kg19aubWwbwm7V5t --yes

Output


  ✓ Deleted: feature "Guest checkout" (2 edges removed)

Open the picker, scoped to features (needs a TTY)

upg delete --type feature

Delete and emit the removed node + cascaded edges as JSON

upg delete n_abc123 -y --json

Related

upg createupg updateupg list