delete_track
Remove a video or audio track from an open Premiere Pro sequence by sequence ID, track type, and index. Caption track deletion is not supported via scripting and returns an explicit error.
Instructions
Deletes a video or audio track from the specified sequence. The sequence does not have to be the active one, but it does have to be open in Premiere: there is no DOM track-deletion API, so this falls through to the QE DOM, which only reaches sequences Premiere has open. A sequence QE cannot address is reported by name rather than deleted from the wrong timeline. Caption track deletion is accepted by the schema but returns an explicit unsupported result because Premiere Pro exposes no caption-track delete/read API to scripting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trackType | Yes | Type of track | |
| sequenceId | Yes | The sequence ID (GUID) as returned in the "id" field by list_sequences or get_active_sequence | |
| trackIndex | Yes | The index of the track to delete |