# scene.remove

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

> Removes a scene; a workspace always keeps at least one.

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

An AI agent connected over MCP asks the person first, unless **AI agents may go live without asking** is on in **Settings › Remote API**.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `scene` | `string` | yes | The scene's id or name. |

## Errors

Not found (-32004) when the scene doesn't exist. A state error (-32005) when it's the only scene.

## Events

- `scene.list`
- `workspace.changed`

## From an AI agent

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

## Example

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

Result:

```json
{}
```

## Related

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