---
title: "lostDevice(_:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/mediadeviceroutingmanager/lostdevice(_:)"
---

# lostDevice(_:)

Removes a device from the system’s device lists so users can no longer select it.

## Declaration

```swift
@MainActor final func lostDevice(_ device: MediaOutputDevice)
```

## Parameters

- `device`: The device that is no longer available.

## Mentioned in

Creating a media device extension

## Discussion

Discussion Call this function when a previously discovered MediaOutputDevice can no longer be found.
