<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaDevice",
  "identifier" : "/documentation/MediaDevice/MediaDeviceRoutingManager/lostDevice(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Device"
    ],
    "preciseIdentifier" : "s:11MediaDevice0aB14RoutingManagerC04lostB0yyAA0a6OutputB0VF"
  },
  "title" : "lostDevice(_:)"
}
-->

# lostDevice(_:)

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

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

## Parameters

`device`

The device that is no longer available.

## Discussion

Call this function when a previously discovered [`MediaOutputDevice`](/documentation/MediaDevice/MediaOutputDevice) can no longer be found.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)