# object.remove

Source: https://docs.lightair.app/developers/remote-api/object.remove

> Removes an object from a scene; its source stays.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Objects and sources. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `object` | `string` | yes | The object's id or name. |
| `scene` | `string` | no | Its scene's id or name. Default: the scene being edited. |

## Errors

Not found (-32004) for an unknown scene or object.

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `remove_object` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "object.remove", "params": { "object": "Old logo", "scene": "Main" } }
```

Result:

```json
{}
```

## Related

- [source.remove](https://docs.lightair.app/developers/remote-api/source.remove.md)
- [history.undo](https://docs.lightair.app/developers/remote-api/history.undo.md)
