delete_game_object
Deletes a GameObject (and all of its children) from the open scene, with Undo support. object_path is resolved as a hierarchy path first, then as an exact name across all loaded objects (first match wins). Returns an error when nothing matches. To delete several objects by selector, use destroy_objects.
Category: Scene
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
object_path |
string | yes | Path to the GameObject to delete |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "delete_game_object", "arguments": { "object_path": "…" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "delete_game_object", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/DeleteGameObjectTool.cs (version 1.2.1). The client receives the same schema from tools/list.