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

# destroy()

Removes underlying allocations and connections from the USB host object.

```
func destroy()
```

## Discussion

When you no longer need the [`IOUSBHostObject`](/documentation/IOUSBHost/IOUSBHostObject), call [`destroy()`](/documentation/IOUSBHost/IOUSBHostObject/destroy()). This method destroys the connection with the kernel object and deregisters interest on <doc://com.apple.documentation/documentation/iokit/io_service_t>. Calling [`destroy()`](/documentation/IOUSBHost/IOUSBHostObject/destroy()) multiple times has no effect.

---

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)