---
title: DestroyInterfaceIterator
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostdevice/destroyinterfaceiterator
---

# DestroyInterfaceIterator

Destroys an interface iterator that you created.

## Declaration

```occ
virtual kern_return_t DestroyInterfaceIterator(uintptr_t ref);
```

## Parameters

- `ref`: An opaque iterator reference that you created using the doc://com.apple.usbdriverkit/documentation/USBDriverKit/IOUSBHostDevice/CreateInterfaceIterator method.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Iterating Over the Device Interfaces

- [CreateInterfaceIterator](usbdriverkit/iousbhostdevice/createinterfaceiterator.md)
- [CopyInterface](usbdriverkit/iousbhostdevice/copyinterface.md)
