Cleaning Up After Deleted Apps on MacOS
After deleting apps on MacOS, they tend leave remnants behind in the form of caches and configs throughout the system. This is how I find and remove those leftover files. I’ll be completely removing Skype from my system to demonstrate files and directories left behind after an app is deleted.
Searching for Remnants
To find directories and files related to Skype, I ran a system-wide search using the following command:
This command finds all files and directories containing the word “skype”, while excluding those in
/System/Volumes/Data/, and saves the results to a textfile. The reason
/System/Volumes/Data/ is being excluded is because the
find command will give us duplicate results with
/System/Volumes/Data/ prepended. This is because MacOS has an additional read-only system volume. You can read more about it here, and for a more technical dive into this additional volume you can read this forensics blog post.
The command will take a few minutes to complete, so give it some time. Additionally, your terminal will fill up with error messages stating
Operation not permitted. For example:
This is normal, just wait for the command to finish.
Once the command is finished, the output textfile will contain paths of Skype-related files and directories. Here are a few examples of those to demonstrate:
From here, we can see that we can ignore some of the results that were clearly not left behind by Skpe, such as the results under the
/usr/local/Homebrew/ directory. In this case, we want to delete files and directories with
com.skype.skype in their name.
Searching by Company
You can also try searching by company name. For example, I ran the
find command and searched for
*microsoft* and found that there were several directories in my system that were left by Microsoft applications:
A few examples of the results:
It’s worth trying both searching by app and searching by company. If we had only searched for Powerpoint, we would’ve missed the results for Word and Excel.
Try this with apps you’ve deleted in the past. Chances are there’s at least one file left behind by an app.