<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZUSBController/Delegate-swift.protocol/usbController(_:usbPassthroughDeviceDidDisconnect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(pl)VZUSBControllerDelegate(im)usbController:usbPassthroughDeviceDidDisconnect:"
  },
  "title" : "usbController(_:usbPassthroughDeviceDidDisconnect:)"
}
-->

# usbController(_:usbPassthroughDeviceDidDisconnect:)

```
optional func usbController(_ usbController: VZUSBController, usbPassthroughDeviceDidDisconnect device: VZUSBPassthroughDevice)
```

## Parameters

`usbController`

The VZUSBController invoking the delegate method.

`device`

The VZUSBPassthroughDevice that disconnected.

## Discussion\abstract Invoked when a USB device’s IOService is terminated.
\discussion When invoked, the framework has detached the corresponding
VZUSBPassthroughDevice from its VZUSBController and removed
the device from the VZUSBController.usbDevices array.

---

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)