Delete GameObject
unity_delete_gameobjectDeletes a Unity GameObject by hierarchy path for precise scene cleanup; undoable in the Editor, but verify the path since it is destructive once the scene is saved.
Instructions
Delete a GameObject by path (Undo-able in Editor, but file-wise destructive once scene is saved).
Provide exact path from unity_find_gameobjects. Double-check path before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "unity_delete_gameobject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Hierarchy path of the GameObject, e.g. 'Player' or 'Level/Enemies/Orc' |