remove_usd_prim
Delete a prim and its subtree from the current edit target layer of a registered USD stage, returning whether it was removed; changes are not saved to disk.
Instructions
Remove a prim and its subtree from the current edit target layer of a registered USD stage, returning removed. Opinions in other layers or references can keep it composed; set_usd_prim_active with active=false is the reversible way to hide a prim. Not saved to disk.
Returns: { removed: bool, prim_path: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | Absolute SdfPath of the prim to remove, e.g. "/World/Cube"; its descendants go with it. | |
| stage_name | No | Name the stage was registered under by create_usd_stage or open_usd_stage; a stage already in the USD cache also matches by the end of its root layer identifier. |