I removed a program from my MacBook Pro by deleting the app. I also found a few other things in the file system and removed them. Is there a way to ensure no additional information is left on my laptop? Perhaps from command line?
4 Answers
AppCleaner is a free application which searches for files associated with an App, but I don't know how far it goes in ensuring nothing is left.
-
After using AppCleaner, I use FindAnyFile, to search the drive for prefs files, temp files, invisible files plists, etc. that might be related to the App. You have to come up with likely names yourself, but it's not uncommon to find 3 or 4 files that get left behind by the automatic cleaners. It takes practice to get good at deciding what file names to look for, but that gets easier over time. You can also search by date and time of creation to find leftovers sometimes. Commented Nov 29, 2019 at 4:10
There is no guaranteed way or app that will remove all the files used by a program unless the application comes with an uninstall program, even then do you want all documents you created with the program to be removed?
Leaving aside the documents, you would have to assume that the program was well written and wrote configuration and other files only to the places that Apple suggest. These include ~/Library/Application Support
for various files but exactly where in that directory? Some use the application name, others the supplier. ~/Library/Preferences
, again what is the file name? Also ~/Library/Caches
for caches. Add to these possible use of the /Library
versions of the folders.
OSX does not provide a registry of files used by an app.
However in iOS and now OSX sandboxes all the files will be under one directory and so can be removed - but note this might include any documents you created. Also, note that not all applications are or can be sandboxed.
When I want to delete all the preferences without the app (especially when something is acting wonky) I use AppZapper and just uncheck the application. Although as Mark said there is no guarantee you'll be able to delete everything. For example some developers (of unsandboxed apps) create hidden strangely named files in order to counteract piracy. Although this may not affect you it annoys me when I have unnecessary files around after uninstalling applications. This is also why I do clean installs whenever I need to reinstall.
The only way to guarantee removal of anything and everything an app could leave behind (especially if you are running using an admin account) is to clone your HD(s), eject the clone before installing and running the app, and then do a complete HD reformat and restore from the clone drive after removing the app. Make sure the clone is bootable.
-
What about other apps you have installed afterwards? In effect this only works if you install a program use it and then delete without doing anything else.– mmmmmmCommented Jan 13, 2013 at 22:43
-
1True. Apps you install afterwards could have been corrupted or have had stuff hidden in their data or directories by the app you want to remove. So the only way to be absolutely sure is to go all the way back to the earlier backup or cloned HD.– hotpaw2Commented Jan 14, 2013 at 2:35