---
title: RemoveObject
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodriver/removeobject
---

# RemoveObject

Removes an audio object from the driver.

## Declaration

```occ
kern_return_t RemoveObject(IOUserAudioObject *in_object);
```

## Parameters

- `in_object`: The doc://com.apple.audiodriverkit/documentation/AudioDriverKit/AudioDriverKit/IOUserAudioObjectID to remove from the driver.

## 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 the remove succeeds, the object’s reference count decrements by one. The caller should also call PropertiesChanged to notify the host of any changes.

## See Also

### Working with Audio Objects

- [AddObject](audiodriverkit/iouseraudiodriver/addobject.md)
- [GetAudioObjectForObjectID](audiodriverkit/iouseraudiodriver/getaudioobjectforobjectid.md)
