Forrest logo
back to the defaults tool

defaults:tldr:049ce

defaults: Delete all defaults of an application.
$ defaults delete "${application}"
try on your machine

The command defaults delete "${application}" is used to delete a specific application's preferences or settings from the user's defaults database on macOS.

Here's a breakdown of the command:

  • defaults: It is a command-line utility on macOS used to work with the user's defaults system.
  • delete: This subcommand of defaults is used to delete a value or a whole domain (application's preferences). In this case, it is used to delete the specific application's preferences.
  • "${application}": ${application} is a variable that should be replaced with the name of the application whose preferences you want to delete. Applications on macOS store their preferences in the defaults system with their bundle identifier, so "${application}" would typically be something like "com.example.app".

For example, if you want to delete the preferences for an application named "com.example.app", you would run:

defaults delete "com.example.app"

Note that by deleting an application's preferences, you will reset all the settings of that application to their default values, similar to when you first installed the application.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the defaults tool