cutmancometh
cutmancometh

Reputation: 1727

How to delete preferences for Mac application?

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

Answers (1)

user3577225
user3577225

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

Related Questions