delete_nodes
Remove one or more nodes and their descendants from a Godot scene file, saving after all deletions. Use an array of node paths; scene root cannot be removed.
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). Errors while a Godot runtime session is active on this project; stop_project (or detach_project) clears it.
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 |