<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOUSBHost",
  "identifier" : "/documentation/IOUSBHost/IOUSBHostDevice/reset()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOUSBHost"
    ],
    "preciseIdentifier" : "c:objc(cs)IOUSBHostDevice(im)resetWithError:"
  },
  "title" : "reset()"
}
-->

# reset()

Terminates the device and attempts to re-enumerate it.

```
func reset() throws
```

## Discussion

This function resets and attempts to re-enumerate the USB device, and terminates the <doc://com.apple.documentation/documentation/kernel/iousbhostdevice> and all of its child <doc://com.apple.documentation/documentation/kernel/ioservice> objects. If the reset is successful, it also creates and registers a new <doc://com.apple.documentation/documentation/kernel/ioservice> object after terminating the previous object. After the call returns successfully, the framework [`IOUSBHostDevice`](/documentation/IOUSBHost/IOUSBHostDevice) no longer has a valid connection with the <doc://com.apple.documentation/documentation/kernel/ioservice> object.

> Important:
> To use the re-enumerated device, you must create a new framework client using ``doc://com.apple.iousbhost/documentation/IOUSBHost/IOUSBHostObject/initWithIOService:options:queue:error:interestHandler:``.

---

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)