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

# remove(_:)

Removes a given player item from the queue.

## Declaration

```swift
nonisolated func remove(_ item: AVPlayerItem)
```

## Parameters

- `item`: The player item to remove from the queue.

## Discussion

Discussion If the item is currently playing, calling this method has the same effect as calling the advanceToNextItem() method.

## See Also

### Managing the player queue

- [items()](avfoundation/avqueueplayer/items().md)
- [advanceToNextItem()](avfoundation/avqueueplayer/advancetonextitem().md)
- [canInsert(_:after:)](avfoundation/avqueueplayer/caninsert(_:after:).md)
- [insert(_:after:)](avfoundation/avqueueplayer/insert(_:after:).md)
- [removeAllItems()](avfoundation/avqueueplayer/removeallitems().md)
