<!--
{
  "availability" : [
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCPreferencesRemoveValue(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCPreferencesRemoveValue"
  },
  "title" : "SCPreferencesRemoveValue(_:_:)"
}
-->

# SCPreferencesRemoveValue(_:_:)

Removes the data associated with the specified preference key.

```
func SCPreferencesRemoveValue(_ prefs: SCPreferences, _ key: CFString) -> Bool
```

## Parameters

`prefs`

The preferences session.

`key`

The preference key.

## Return Value

`TRUE` if the value was removed; `FALSE` if the key does not exist or if an error occurred.

## Discussion

---

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)