← Back to Uninstall on Mac

What Is a Plist File on Mac, and When Is It Safe to Delete One

What is a plist file? A property list (plist) is how macOS and Mac apps store settings, as keys and values in XML or binary form. Most app preferences sit in ~/Library/Preferences, named by the app's bundle ID, like com.google.Chrome.plist. To reset an app, quit it, remove its own plist and restart. Leave Apple's and system plists alone.

If a guide such as how to uninstall Google Chrome on Mac told you to delete a .plist, this page covers where plists live, how to read one, which app owns it, and when deleting one is safe.

What is a plist file on Mac?

A property list is a small file of settings stored as pairs: a key, which is a name, and a value. Apple's About Property Lists page lists the building blocks: strings, numbers, binary data, dates and Boolean (yes or no) values. Arrays (ordered lists) and dictionaries (sets of keys and values) group them.

The plist file format has one extension and two common encodings. XML is plain text, with each key followed by its value:

<dict>
    <key>ShowToolbar</key>
    <true/>
    <key>WindowWidth</key>
    <integer>800</integer>
</dict>

Binary is the form Apple calls more compact and faster to read and write (Apple also lists an older ASCII format). A binary plist starts with bplist00, and the rest looks like random symbols in TextEdit.

A plist is not a program and cannot run by itself. Apps and macOS read it. File names usually follow the app's bundle ID, which Apple's CFBundleIdentifier page says is typically written in reverse-DNS format, as in com.apple.TextEdit.plist.

What is a plist file: a tray of name tags, each paired with a switch, dial or other value, plus a nested tray of beads
Each key pairs with a value, and groups can nest.

Where plist files are stored on a Mac

Where can I find plist files on my Mac? Most are in ~/Library/Preferences, with more in app containers, /Library/Preferences and the launch agent folders. Your ~/Library folder is hidden by default: see how to show hidden files on Mac to reach it.

App preferences in ~/Library/Preferences

Apple's User Defaults guide says the preferences file sits in Library/Preferences in your home folder, and for a sandboxed app, that home is the app's container. The ByHost subfolder holds settings tied to this one Mac. Its file names add a long ID after the bundle ID, so match on the bundle ID part.

Preferences inside app containers

Apple's App Sandbox documentation says macOS creates a container in ~/Library/Containers the first time a sandboxed app runs. Its settings sit at ~/Library/Containers/bundle-ID/Data/Library/Preferences/bundle-ID.plist. Finder lists each container under the app's name (TextEdit, not com.apple.TextEdit), while Terminal and Go to Folder use the bundle ID.

Shared app group data lives in ~/Library/Group Containers. Folder names there begin with a developer code or group., then a name, as in group.com.docker for Docker. A container can also hold the app's documents, so look inside before you delete one.

Settings for every user in /Library/Preferences

Apps put settings for all accounts here, and changing them asks for an administrator password. GlobalProtect, for example, keeps com.paloaltonetworks.GlobalProtect.settings.plist here. Files that start with com.apple belong to macOS, so leave those alone.

Launch agents and daemons

These plists tell launchd, the part of macOS that starts background jobs, what to run and when. Apple's launchd documentation names the folders: ~/Library/LaunchAgents, /Library/LaunchAgents and /Library/LaunchDaemons, plus Apple's own in /System/Library. Docker, for example, can add com.docker.vmnetd.plist to LaunchDaemons. To find and remove these, see how to stop apps from opening on startup.

Info.plist inside every app

Every app carries Contents/Info.plist with its name, version and bundle ID, as Apple's About Information Property List Files page explains. The file goes to the Trash with the app, so it is never a leftover. Never edit it.

Location What lives there Safe to remove?
~/Library/Preferences Your app settings Yes, for apps you removed or want to reset
~/Library/Preferences/ByHost Settings for this Mac Same rule, matching files only
~/Library/Containers, ~/Library/Group Containers Sandboxed app data, settings included After the app is gone and you checked for documents
/Library/Preferences Settings for all users Only a removed app's own file (admin password)
LaunchAgents, LaunchDaemons Start-up instructions Only for apps you removed
Inside an app Info.plist Never: it leaves with the app
/System/Library macOS itself Never: it is read-only
Plist file locations on Mac shown as five shelf compartments, from an open card file to a locked glass system cabinet
From your own Preferences folder to locked system folders.

How to open a plist file on Mac

Preview a plist with Quick Look

Select the file in Finder and press the Space bar, as Apple's Quick Look guide shows. XML plists usually preview as text. If you see symbols that start with bplist00, the file is binary, so use plutil.

Read any plist with plutil in Terminal

This command prints a readable tree of an XML or binary plist and changes nothing:

plutil -p ~/Library/Preferences/com.google.Chrome.plist

Run plutil -lint with a path to check a file for errors. To get an XML version, convert a copy and never the live file. Apple's plutil manual page (run man plutil) documents -o for saving the result elsewhere:

plutil -convert xml1 -o ~/Desktop/copy.plist path/to/file.plist

Read an app's settings with defaults

The command defaults read com.vendor.app prints one app's settings through the macOS preferences system. Try defaults read com.apple.TextEdit. TextEdit keeps its file in its container, yet defaults finds it, so you do not need the container path.

How to edit a plist file, only when you have to

Apple's developer documentation says Xcode, Apple's free developer app, has a property list editor. It is a large download; if you get it only for this, see how to uninstall Xcode on Mac later. TextEdit also opens XML plists.

Still, change settings in the app itself when you can. Apple's About the User Defaults System page says not to modify an app's preferences file directly. Apple's defaults manual page (run man defaults) adds that a running app won't see a change and might even overwrite it, so quit the app first.

How to tell which app a plist file belongs to

Find the app's bundle ID first, then match file names to it. Two read-only Terminal commands give you the ID. The first returns com.google.Chrome:

osascript -e 'id of app "Google Chrome"'
mdls -name kMDItemCFBundleIdentifier -raw "/Applications/AppName.app"

Replace AppName with the app's name in Applications and keep the quotes. Without Terminal, Control-click the app, choose Show Package Contents, preview Contents/Info.plist with Quick Look and read CFBundleIdentifier. If that preview is unreadable, use a command.

All three lookups need the app installed, so note the bundle ID before you remove it. If the app is already gone, take the ID from that app's guide on this site, or match on the vendor and app name.

The company part of the name (com.google, com.docker) is a strong hint but not proof. One vendor makes several apps, and some apps use more than one prefix: Chrome also leaves com.google.Keystone files. That is why the guides to uninstall Google Chrome and uninstall Microsoft Office on Mac name the exact files. If a file matches no app you know, leave it.

When it is safe to delete a plist file, and when it is not

Is it safe to delete plist files? It depends on whose file it is.

Safe to delete:

  • Leftovers from an app you removed: its preference plist, its ByHost file and, once you have checked for documents, its container.
  • Resetting an app you still use: its own preference plist, with the app quit.
  • Launch agent plists of a removed app: follow the startup guide linked above.

Leave alone:

  • com.apple files: they hold settings for macOS and Apple's apps.
  • Anything in /System: System Integrity Protection keeps it read-only. Leave SIP on.
  • Plists of installed security, VPN or device management apps: use the vendor's uninstaller first, as in the guide to uninstall GlobalProtect on Mac. On a work or school Mac, ask IT. Removing a security app also removes its protection.
  • The whole Preferences folder: never empty it. Delete one app's files at a time.

Before you delete anything, back up with Time Machine, or move the file to the Desktop for a few days instead.

Is it safe to delete plist files: one app's matching cards go into a wastebasket while other cards stay locked in a case
Delete only files that clearly belong to the app you removed.

How to remove a plist file left behind by a deleted app

  1. Make sure nothing from the app is still running. Check Activity Monitor, or see how to force quit an app on Mac.
  2. Back up your Mac with Time Machine.
  3. In Finder, choose Go > Go to Folder, as Apple's Go to Folder guide shows. Enter ~/Library/Preferences and press Return.
  4. In this folder, its ByHost subfolder and /Library/Preferences, look for files starting with the bundle ID you noted. In ~/Library/Containers, look for the app's name. In ~/Library/Group Containers, look for the vendor's or app's name.
  5. Drag only the files that clearly match the app to the Trash. Files in /Library ask for an administrator password.
  6. Restart the Mac and check that nothing came back. Then empty the Trash.

Plists are only part of what an app leaves behind. Caches and Application Support folders stay too, so see how to clear cache on Mac.

How to reset an app by removing its plist

For an app that misbehaves, removing its plist brings back default settings. Replace com.vendor.app with the app's bundle ID.

  1. Quit the app, including any menu bar helper.
  2. Back up its settings with defaults export com.vendor.app ~/Desktop/backup.plist, or copy the plist to the Desktop.
  3. Remove the settings with defaults delete com.vendor.app. Apple's defaults manual page says this "Removes all default information for domain." The Finder way is to move the plist to the Desktop, then restart the Mac.
  4. Open the app. It starts with default settings, and you may need to sign in again.
  5. If nothing improved, quit the app and restore with defaults import com.vendor.app ~/Desktop/backup.plist, or move the file back.

macOS manages preferences through a background service, cfprefsd, which its manual page calls the defaults server. defaults delete goes through it, and a restart covers the Finder method. Leave cfprefsd alone: its manual page says users should not run it manually.

If nothing helps, reinstall the app. For apps that refuse to go, see how to delete apps on Mac that won't delete.

Reset an app by removing its plist: the old settings card waits in a backup tray while a fresh default card takes its place
Export, delete, test, and import the backup if nothing changed.

Frequently Asked Questions

Is it safe to delete plist files?

Yes for an app's own plist after you remove the app, or with the app quit to reset it. No for com.apple files and /System. Back up first.

Can I delete all plist files on Mac?

No. Emptying ~/Library/Preferences resets many apps and macOS settings at once. Remove one app's files at a time.

Where can I find plist files on my Mac?

Mostly in ~/Library/Preferences, plus ByHost, app containers and /Library/Preferences. The table above shows what is safe to remove.

What happens if I delete a plist file?

Once the app is quit and you restart, it forgets its settings and usually writes a fresh file when it next opens. Deleting a plist never uninstalls the app.

Is there a free plist editor for Mac?

Yes. Xcode, Apple's free developer app, includes a property list editor, and TextEdit opens XML plists. For reading only, plutil -p is built in.

Removing other apps from this Mac

Each per-app guide names the exact plists an app leaves:

If you have more apps to remove, the other guides on this site show what each one leaves behind and how to remove it by hand.