Delete sections and elements
remove_nodesDelete many nodes from a site in ONE call, batched into one new draft version. Locate each node_id across pages, siteElements and collection detail templates, and splice it out of its parent's children array. Use this for structural subtraction — dropping a testimonials section, removing a nav link, cutting one card from a grid, removing a header/footer column — whenever the brief calls for the template's layout minus something. Safe alternative to patch_fixture's JSON-Patch 'remove' ops for the same purpose: no hand-constructed paths, validated against the actual tree, and rejects root-node removal so you can't nuke a whole page. If a node id isn't found, the whole batch is rejected (fix and retry). Up to 50 removals per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | ||
| node_ids | Yes | Array of node ids to remove from the fixture. The tool locates each across pages + siteElements + collection detail templates and splices it from its parent. All removals apply as ONE new draft version. Root nodes (page tree root, header root, footer root, pageLayout root) cannot be removed — use delete_page for that. Each node_id may appear at most once. Max 50 per call. |