Deskit

Uninstall

Removes an app together with what it left behind: settings, data, caches and background helpers. macOS only for now.

dkit uninstall                   # choose from a list, then review what would go
dkit uninstall --list            # every app Deskit can see, and which it can remove
dkit uninstall Chat --dry-run    # what removing Chat would take; changes nothing
dkit uninstall Chat              # review, untick what should stay, confirm
dkit uninstall Chat Notes "Photo Editor" --dry-run   # several at once

Name the app by its name as Finder shows it, its bundle identifier (com.example.chat) or its full path. In the list, type to search by name or identifier.

Several apps at once

Name as many apps as you like, each the same way as one. In the list, press tab on each app to tick it, then enter; with nothing ticked, enter takes the app the cursor is on.

  • All of them, or none. Every app named is found first. If one cannot be found, matches more than one app, is running, is part of macOS or needs an administrator, the command stops, says which, and changes nothing. Leave that one out and run it again.
  • Each app is judged alone, exactly as if you had removed it by itself. Removing two apps together never lets one take a file that belongs to the other, or one that neither could take alone.
  • The preview shows each app with what goes with it, then the total.
  • One run, one undo. The apps are recorded as a single run: dkit undo puts all of them back, and dkit history shows one line for the command you typed. To put back only one of them, name its paths: dkit history <run> lists them, then dkit undo <run> /Applications/Chat.app ~/Library/Preferences/com.example.chat.plist.
  • An app named twice, by its name and its path say, is removed once.

What goes with the app

Dragging an app to the Trash leaves its files behind in your Library. Deskit finds them by the app’s bundle identifier, the name macOS itself files an app’s things under:

What Where it is found
The app /Applications or ~/Applications, or one folder down
Settings ~/Library/Preferences/<identifier>.plist, Preferences/ByHost
App data ~/Library/Application Support/<identifier>, Containers, Group Containers
Caches and logs ~/Library/Caches, Logs
Web data ~/Library/HTTPStorages, WebKit, Cookies
Window state ~/Library/Saved Application State
Background helper ~/Library/LaunchAgents
App scripts ~/Library/Application Scripts

An entry counts when it is named exactly by the identifier, by the identifier plus an ending (com.example.chat.helper), or with a developer team prefix (ABCDE12345.com.example.chat).

Found by name only. Some apps file data under their display name, such as ~/Library/Application Support/Chat. A name is not proof: another app may use the same one. These are shown in the preview and never removed. Delete them yourself if you know they belong to the app.

Undo

The app, its settings and its data are moved aside, not deleted, and held for 7 days:

dkit undo       # put the app and its files back
dkit history    # past runs and what can still be undone
dkit release    # delete what is being held, freeing the space now

Caches and logs are freed at once, since the app rebuilds them. Everything else comes back with one dkit undo, to where it was. See Undo, history and release.

Press f in the confirmation, or pass --release with --yes, to free everything at once. That cannot be undone, and it deletes your settings and data in that app for good.

Apps Deskit will not remove

dkit uninstall --list says which and why:

Reason Meaning
part of macOS Apple’s own apps (com.apple.*). The system protects them too.
running Quit the app first. Deskit does not quit apps for you.
needs an administrator The app was installed for all users. Deskit never asks for administrator rights; remove it from Finder.

What uninstall never does

These limits are built into the program:

  • Only app bundles in /Applications and ~/Applications, directly inside or one folder down. Never a link to an app.
  • Only entries directly inside the Library folders listed above, and only when their name carries the app’s identifier. Never anything inside Documents, Desktop, Mail, Keychains or any other folder.
  • Never another installed app’s files. If com.example.chat.pro is installed, files named for it are not taken as part of com.example.chat. That holds when both are removed in one run: each still counts as installed while the other is planned and moved.
  • Never an app’s files while the app stays. If the app itself cannot be moved, its settings and data are left where they are.
  • No administrator rights, ever.
  • Your keep list is respected, and symbolic links are never followed or removed.
  • Everything is checked twice: when planning, and again at the moment each item is moved, including that the bundle is still the app you previewed.

Known limits

  • macOS only. Windows and Linux are planned.
  • Files an app stores outside the folders above are not found: anything it put in Documents, files in /Library (system-wide), kernel or system extensions, login items registered with the system.
  • macOS may refuse to let a terminal move some app containers. Those are reported as “could not be moved” and left where they are. Granting your terminal Full Disk Access in System Settings › Privacy & Security helps.
  • ~/Library/Cookies usually cannot be read from a terminal; the preview says so.
  • Apps nested more than one folder deep are not listed.
  • When two installed apps have identifiers where one starts with the other (com.example.suite and com.example.suite.editor), files named for the longer one could belong to either, so neither takes them, alone or together. They are left in your Library.
  • An assistant using dkit mcp previews and removes one app at a time.

From docs/commands/uninstall.md at v0.1.0-alpha.2.