delete_clip
Remove a clip from a Live Session slot along with its notes and envelopes. Use confirm=True to execute or confirm=False to preview the removal impact first.
Instructions
Delete the clip in a Session slot, its notes and envelopes with it.
Requires confirm=True. With confirm=False it reports the clip name, length and
note count that the call would remove, and changes nothing.
Returns:
Dictionary reporting the deletion, or the loss report when unconfirmed.
Note:
This empties one Session slot. Slot indices do not shift, so nothing else
moves and no other index goes stale.
Emptying a clip is not the same as deleting it: write_clip_notes with an
empty list and mode='replace' leaves the clip in place with its length,
loop and envelopes intact. Prefer that where the slot should stay filled.
A clip already copied into the Arrangement by arrange is a separate clip and
survives this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Clip slot index in track.clip_slots, counted from 0. A slot index is the scene the clip sits in, so slot 2 is the third scene down. | |
| track | Yes | Track index in song.tracks, counted from 0. | |
| confirm | No | True carries the removal out. False changes nothing and returns a report of what the call would remove, which is how to look before committing to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||