delete_entity
Remove an entity from the current O3DE level using its entity ID; missing entities and the root entity are refused.
Instructions
Delete an entity from the current O3DE level.
Tries the gem's native delete_entity request first (gem 0.5.0 or
later, works in secure mode) and returns its JSON verbatim:
{"deleted": <id>}. A missing entity or the level's root entity is
refused by the gem and returned as an error. Older gems and the legacy
transport fall back to editor Python, which prints
Deleted entity [<id>].
Args: entity_id: The entity ID to delete.
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": {
"entity_id": "<entity_id>"
},
"name": "delete_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |