---
title: "removeTrack(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablecomposition/removetrack(_:)"
---

# removeTrack(_:)

Removes a specified track from the composition.

## Declaration

```swift
func removeTrack(_ track: AVCompositionTrack)
```

## Parameters

- `track`: The track to remove.

## Discussion

Discussion When you remove a track, the system sets its composition value to nil.

## See Also

### Managing composition tracks

- [mutableTrack(compatibleWith:)](avfoundation/avmutablecomposition/mutabletrack(compatiblewith:).md)
- [addMutableTrack(withMediaType:preferredTrackID:)](avfoundation/avmutablecomposition/addmutabletrack(withmediatype:preferredtrackid:).md)
