---
title: removeAllBuffers
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/removeallbuffers
---

# removeAllBuffers

Removes all buffers from the video stream.

## Declaration

```occ
kern_return_t removeAllBuffers();
```

## Return Value

Return Value kIOReturnSuccess if all the buffers were successfully removed.

## Discussion

Discussion Buffers cannot be removed while the stream is open, as this will change the buffer identifiers of existing buffers.

## See Also

### Working with video buffers

- [GetBufferCount](videodriverkit/iouservideostream/getbuffercount.md)
- [GetBufferList](videodriverkit/iouservideostream/getbufferlist.md)
- [GetBufferWithID](videodriverkit/iouservideostream/getbufferwithid.md)
- [addBuffer](videodriverkit/iouservideostream/addbuffer.md)
- [addBuffers](videodriverkit/iouservideostream/addbuffers.md)
- [enqueueOutputBuffer](videodriverkit/iouservideostream/enqueueoutputbuffer.md)
- [IOUserVideoBuffer](videodriverkit/iouservideobuffer.md)
- [SendOutputBufferNotification](videodriverkit/iouservideostream/sendoutputbuffernotification.md)
