delete_nodes
Remove one or more nodes and their descendants from a Godot scene file. Accepts an array of node paths, saves once, and returns per-node results; cannot delete the scene root.
Instructions
Remove one or more nodes (and their descendants) from a scene file. Always-array: pass a single-element nodePaths array for one-off deletes. Saves once at the end. Cannot delete the scene root — that entry returns an error and the rest still process. Returns: results array with one entry per nodePath in input order (success or error message).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePaths | Yes | Node paths from scene root to delete (e.g. ["root/Player/Sprite2D"]) | |
| scenePath | Yes | Scene file path relative to the project (e.g. "scenes/main.tscn") | |
| projectPath | Yes | Path to the Godot project directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No |