---
title: RemoveControl
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioclockdevice/removecontrol
---

# RemoveControl

Removes a control from the clock device.

## Declaration

```occ
kern_return_t RemoveControl(IOUserAudioControl *in_control);
```

## Parameters

- `in_control`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioControl to remove from the clock 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 control succeeds, the control’s reference count decrements by one.

## See Also

### Managing Audio Controls

- [AddControl](audiodriverkit/iouseraudioclockdevice/addcontrol.md)
- [IOUserAudioControl](audiodriverkit/iouseraudiocontrol.md)
