scene-node-delete
Remove a node and its children from a Godot scene to clean up unused elements. Automatically saves the scene unless saveScene is set to false.
Instructions
[compact alias of delete_node] Removes a node and all its children from a scene. Use to clean up unused nodes. Cannot delete root node. Scene is saved automatically unless saveScene=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. | |
| scenePath | Yes | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") | |
| nodePath | Yes | Path to node to delete (e.g., "Player/OldSprite", "Enemies/Enemy1") | |
| saveScene | No | If true (default), saves scene after deletion. Set false for batch operations. |