---
title: RemoveCustomProperty
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioobject/removecustomproperty
---

# RemoveCustomProperty

Removes a previously-added custom property object from the audio object.

## Declaration

```occ
virtual kern_return_t RemoveCustomProperty(IOUserAudioCustomProperty *in_custom_property);
```

## Parameters

- `in_custom_property`: An doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioCustomProperty object to remove from the doc://com.apple.audiodriverkit/documentation/AudioDriverKit/IOUserAudioObject.

## Return Value

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

## See Also

### Using Custom Properties

- [AddCustomProperty](audiodriverkit/iouseraudioobject/addcustomproperty.md)
- [IOUserAudioCustomProperty](audiodriverkit/iouseraudiocustomproperty.md)
