# editor.clip.delete

Source: https://docs.lightair.app/developers/remote-api/editor.clip.delete

> Deletes one clip or several from the timeline.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `clip` | `string` | no | A clip's id. |
| `clips` | `string[]` | no | Several clips' ids, instead of `clip`. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Errors

Invalid params (-32602) without `clip` or `clips`. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it. Invalid params (-32602) for a clip id that can't be read; not found (-32004) for a clip that isn't on the canvas.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_clip (action: delete)` reaches this method.

## Related

- [editor.clip.split](https://docs.lightair.app/developers/remote-api/editor.clip.split.md)
- [editor.undo](https://docs.lightair.app/developers/remote-api/editor.undo.md)
