Skip to content

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
--force
Skip confirmation

Examples

Delete a specific entity and its edges

upg delete n_Kg19aubWwbwm7V5t --force

Output


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

Open the picker, scoped to features

upg delete --type feature

Delete without the confirmation prompt

upg delete node_abc123 --force

Related

upg createupg updateupg list