Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.
Tools/Areas & Change Log/delete_area

delete_area

Delete a product area from `.upg/portfolio.upg`. Guarded: refuses while the area still has products unless `force: true`. Child areas are un-nested (their parent link is cleared) so no parent reference dangles.

Areas & Change Logatomic (single portfolio.upg flush).

Arguments

area_idstringrequired

Product area id to delete (from list_product_areas)

forcebooleanoptional

Delete even if the area still has products (default false)

Returns

Shape
{ message, area_id, deleted, unnested_children: string[] }

See Also