---
title: RemoveStream
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodevice/removestream
---

# RemoveStream

Removes a video stream from the device.

## Declaration

```occ
kern_return_t RemoveStream(IOUserVideoStream *in_stream);
```

## Parameters

- `in_stream`: IOUserVideoStream to remove from the device.

## Return Value

Return Value kIOReturnSuccess if stream was successfully removed.

## Discussion

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

## See Also

### Working with video streams

- [AddStream](videodriverkit/iouservideodevice/addstream.md)
- [IOUserVideoStream](videodriverkit/iouservideostream.md)
