---
title: "remove(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritem/remove(_:)-29iuz"
---

# remove(_:)

Removes the specified media data collector from the player item’s collection of media collectors.

## Declaration

```swift
nonisolated func remove(_ collector: AVPlayerItemMediaDataCollector)
```

## Parameters

- `collector`: The instance of doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayerItemMediaDataCollector to remove.

## See Also

### Managing player item data collectors

- [mediaDataCollectors](avfoundation/avplayeritem/mediadatacollectors.md)
- [add(_:)](avfoundation/avplayeritem/add(_:)-9l3to.md)
