If a preference value is no longer needed, you can delete it by calling
CFPreferencesSetAppValue
and passing
NULL
as the value. Listing 1-4 demonstrates this process.
Listing 1-4 Deleteing a preference
CFStringRef highScoreKey = CFSTR("High Score"); // Remove the preference. CFPreferencesSetAppValue(highScoreKey, NULL, kCFPreferencesCurrentApplication);