---
title: DisconnectQueues
framework: usbserialdriverkit
role: symbol
role_heading: Instance Method
path: usbserialdriverkit/iouserusbserial/disconnectqueues
---

# DisconnectQueues

Releases the buffers that manage data moving to and from the device.

## Declaration

```occ
virtual kern_return_t DisconnectQueues();
```

## Return Value

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

## Discussion

Discussion During the cleanup of your driver, call this method to disconnect the data queues you use to buffer data. If you provided the buffer objects at configuration time, the system releases its references to the objects you provided.

## See Also

### Configuring the Serial Data Queues

- [ConnectQueues](usbserialdriverkit/iouserusbserial/connectqueues.md)
