delete_items_in_range
Delete media items in a time range on one track or all tracks, with dry-run preview and undo protection.
Instructions
Delete media items in a time range on one track (or all_tracks). Destructive — confirm intent; undo-block wrapped; supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Position object, e.g. {"type":"cursor"}, {"type":"bar","bar":33}, {"type":"time","seconds":12.5}, {"type":"marker","name":"Chorus"}, {"type":"region","name":"Verse 1"}, {"type":"time_selection"} | |
| track | No | Exact track name (case-insensitive). | |
| dry_run | No | Preview: return what would run without changing the project. | |
| all_tracks | No | ||
| length_bars | No | ||
| length_seconds | No | ||
| track_contains | No | Case-insensitive substring; errors if it matches more than one track. | |
| target_track_guid | No | Stable REAPER track GUID; preferred when available. | |
| use_selected_track | No | Target the currently selected track instead of naming one. |