---
title: "SCPreferencesRemoveValue(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scpreferencesremovevalue(_:_:)"
---

# SCPreferencesRemoveValue(_:_:)

Removes the data associated with the specified preference key.

## Declaration

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

## Parameters

- `prefs`: The preferences session.
- `key`: The preference key.

## Return Value

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

## See Also

### Adding, Getting, and Removing Values

- [SCPreferencesAddValue(_:_:_:)](systemconfiguration/scpreferencesaddvalue(_:_:_:).md)
- [SCPreferencesGetValue(_:_:)](systemconfiguration/scpreferencesgetvalue(_:_:).md)
- [SCPreferencesSetValue(_:_:_:)](systemconfiguration/scpreferencessetvalue(_:_:_:).md)
