delete_track
Delete a video or audio track from a specified sequence in Premiere Pro by providing sequence ID, track type, and index. Works even if sequence isn't active, as long as it's open; caption tracks return unsupported.
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 |