Reputation: 1727
I'm developing a Mac desktop app using Cocoa and Objective C in XCode. I need to simulate a clean reinstall, but I can't figure out how to completely delete all preferences for the application.
I found the file at /Users/username/Library/Preferences/com.MyApp.plist and deleted it, but the preferences still persist when I reopen the application.
Thanks in advance for your help.
Upvotes: 0
Views: 1082
Reputation:
Use the console tool defaults
(in a Terminal.app
window) with the bundle identifier of your application, like this:
defaults delete "com.domain.AppName"
Upvotes: 5