---
title: RemoveStream
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodevice/removestream
---

# RemoveStream

Removes an audio stream from the device.

## Declaration

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

## Parameters

- `in_stream`: The stream to remove from the device.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## Discussion

Discussion If removing the stream succeeds, the stream’s reference count decrements by one.

## See Also

### Working with Audio Streams

- [AddStream](audiodriverkit/iouseraudiodevice/addstream.md)
- [IOUserAudioStream](audiodriverkit/iouseraudiostream.md)
