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

# removeTrack(_:)

Removes the music track from the sequencer.

## Declaration

```swift
func removeTrack(_ track: AVMusicTrack) -> Bool
```

## Parameters

- `track`: The music track to remove.

## Return Value

Return Value A Boolean value that indicates whether the call succeeds.

## Discussion

Discussion This method doesn’t destroy the method track since you can reuse it.

## See Also

### Handling Music Tracks

- [AVMusicTrack](avfaudio/avmusictrack.md)
- [createAndAppendTrack()](avfaudio/avaudiosequencer/createandappendtrack().md)
- [reverseEvents()](avfaudio/avaudiosequencer/reverseevents().md)
- [AVMusicTrackLoopCount](avfaudio/avmusictrackloopcount.md)
