0

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.

cutmancometh
  • 1,677
  • 3
  • 20
  • 28
  • 1
    Open Terminal. `man defaults`. Read. – matt Jan 22 '15 at 22:36
  • possible duplicate of [Deleting plist file does not reset app on Mac OS 10.9 Mavericks, 10.10 Yosemite](http://stackoverflow.com/questions/19303958/deleting-plist-file-does-not-reset-app-on-mac-os-10-9-mavericks-10-10-yosemite) – Parag Bafna Jan 23 '15 at 14:35

1 Answers1

5

Use the console tool defaults (in a Terminal.app window) with the bundle identifier of your application, like this:

defaults delete "com.domain.AppName"