---
title: RemoveDevice
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideobox/removedevice
---

# RemoveDevice

Removes a video device from the video box.

## Declaration

```occ
kern_return_t RemoveDevice(IOUserVideoDevice *in_device);
```

## Parameters

- `in_device`: IOUserVideoDevice associated with the box.

## Return Value

Return Value kIOReturnSuccess if device was successfully removed.

## Discussion

Discussion The device’s reference count will be decremented if it was successfully removed.

## See Also

### Managing box contents

- [AddDevice](videodriverkit/iouservideobox/adddevice.md)
- [IOUserVideoDevice](videodriverkit/iouservideodevice.md)
- [AddClockDevice](videodriverkit/iouservideobox/addclockdevice.md)
- [RemoveClockDevice](videodriverkit/iouservideobox/removeclockdevice.md)
- [IOUserVideoClockDevice](videodriverkit/iouservideoclockdevice.md)
