---
title: "sequence.deleteTracks: Delete Tracks — Film kit command — Kition"
description: "Deletes all empty video and/or audio tracks (`video`/`audio`: \"empty\") or one named track of each kind."
canonical: "https://developer.kition.ai/docs/kits/film/commands/sequence.deleteTracks"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/sequence.deleteTracks](https://developer.kition.ai/docs/kits/film/commands/sequence.deleteTracks)

# sequence.deleteTracks

**Delete Tracks.** Deletes all empty video and/or audio tracks (`video`/`audio`: "empty") or one named track of each kind.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `audio` | `integer \| string` | no | track id, V1/A1 ordinal, or empty to delete empty tracks |
| `video` | `integer \| string` | no | track id, V1/A1 ordinal, or empty to delete empty tracks |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "sequence.deleteTracks" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `audio`, `video`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "audio": {
      "description": "track id, V1/A1 ordinal, or empty to delete empty tracks",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Track"
      ]
    },
    "video": {
      "description": "track id, V1/A1 ordinal, or empty to delete empty tracks",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Track"
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
