---
title: "usbController(_:usbPassthroughDeviceDidDisconnect:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzusbcontroller/delegate-swift.protocol/usbcontroller(_:usbpassthroughdevicediddisconnect:)"
---

# usbController(_:usbPassthroughDeviceDidDisconnect:)

## Declaration

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

## Parameters

- `usbController`: The VZUSBController invoking the delegate method.
- `device`: The VZUSBPassthroughDevice that disconnected.

## Discussion

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