<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODRecordRemoveValue(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:@F@ODRecordRemoveValue"
  },
  "title" : "ODRecordRemoveValue(_:_:_:_:)"
}
-->

# ODRecordRemoveValue(_:_:_:_:)

Removes a value from a record’s attribute.

```
func ODRecordRemoveValue(_ record: ODRecordRef!, _ attribute: String!, _ value: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

## Parameters

`record`

The record.

`attribute`

The attribute.

`value`

The value to remove.

`error`

An error reference for error details. Can be `NULL`.

## Return Value

`true` if `inValue` is successfully removed from `inAttribute`; otherwise, `false`.

## Discussion

If `inValue` does not exist, `true` is returned and no error is set.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)