delete
Remove tracks, returns, scenes, or clips from an Ableton Live session. Requires the object's current name as a guard; nothing is removed if the name mismatches.
Instructions
Delete a track ('tracks/N'), return track ('returns/N'), scene ('scenes/N'), clip ('tracks/N/slots/M/clip' or an arrangement clip 'tracks/N/arrangement/M'); cue points cannot be deleted (Live only toggles them at the arrangement insert marker). DESTRUCTIVE (one undo step brings it back). expect is mandatory: {"name": <the object's current name>}. Indices shift after every create/delete, so read the object first; if its name no longer matches, nothing is deleted (GUARD_FAILED). The master track cannot be deleted, and a Set always keeps at least one scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expect | Yes | Guard: the object must still have this name (class_name optional) | |
| address | Yes | What to delete |