Uninstall Apps On Mac Using Terminal
Method 1: Manually Uninstall Mac Apps. Best to use when: you only have a few apps to remove, and they are downloaded from the App Store or their official websites. For apps downloaded from the Mac App Store, just go to Launchpad by clicking the icon in the Dock or pinching the thumb and three fingers together on the Trackpad.
How To Delete Apps On Mac Easily. Good news is that most apps are located in your Mac’s Applications folder and are super easy to delete: Open the Applications folder by navigating to your menu bar and then selecting Go Applications or using a shortcut ⌘ + Shift + A. Select the app or utility you want to delete. To delete them, click on Clean. How to use delete file command line feature. Removing files from your Mac forever using Terminal is deceptively simple: just use the rm command followed by the name of the file. Here’s how it works in practice: Launch Terminal from your Utilities folder in Applications. Check which directory you’re in.
Removing programs from a Macintosh can be very easy. In many cases, all you have to do is drag the application's icon to the Trash. Sometimes, though, applications store the files they need to run in other locations on your computer's hard drive, and finding them can take some detective work. If you are used to the uninstall option in Windows, you have a little culture shock — macOS does not have this feature built in.
Why would you want to uninstall a program? For the same reason you occasionally tidy your office or clean your garage. Clutter breeds inefficiency. Applications take up space on your hard disk and can slow your computer. Also, a new version of a program may not work correctly unless you get rid of the old one [source: Ritchie].
Advertisement
Advertisement
Most of the time, uninstalling is this simple:
- Exit the program you want to delete.
- Open the Applications folder, which you'll find by opening a new window in the Finder, or clicking on the hard disk icon.
- Drag the icon of the program you want to uninstall to the Trash.
- Empty the Trash.
When files for the application you want to delete are all stored in one location, dragging the icon to the Trash will take care of most of the work. In Mac talk, apps like this are 'bundled.' To see the files in an application's bundle, click on its icon while holding down the Control key. You should see an option that says, 'show package contents.' Uninstalling applications downloaded from the Mac App Store is even easier — just delete the application from the Applications Folder and its accompanying folder in UserLibraryContainers [source: Tanous].
For some other programs, removal is more complicated. When installed, these programs create files in several locations, often in the System Folder. The first step in removing them is to check the program's documentation to see if there is an uninstall utility. If your program has an uninstall utility associated with it, it may have been installed with the program or included on the disk that came with it. If you downloaded a disk image to install the software, sometimes you'll find an uninstaller there. Running an uninstall utility can make removing a program much easier.
You should be aware that removing an unbundled program by moving it into the Trash can leave behind orphan files on your computer. Preferencefiles are usually small and you might want to ignore them if you're just trying to free up disk space. Background files or support files can be larger, especially for multimedia programs like GarageBand [source: MacRumors]. These files are likely to reside in Library folders in your hard drive or Home folder. They will usually be labeled with the name of the program, like Office or Acrobat, or the developer, such as Microsoft or Adobe. You can search for the relevant names using Spotlight, which is included with the Mac OS. Drag the files you find to the trash to get rid of them [source: Tanous]. .
Check out the next page for tips to make your uninstallation go even more smoothly.
Advertisement
If searching through obscure corners of your computer for what could be hundreds of files sounds like something a machine could do better than you, you're right. There are plenty of software programs that do just that. They're usually your best bet for really cleaning an app off your Mac, and some of them are free. Popular examples include AppTrap, Appcleaner, and AppZapper.
Some of the files that a program might create on your hard disk are invisible. It may be tempting, especially for neat freaks, to find and delete these files. But some files are deliberately hidden because they are essential to the computer's operating system. Deleting the wrong file could land you in deep trouble [source: Landau]. The best advice is not to go where even experienced techies fear to tread. Uninstall utilities can search out and destroy these files, but doing so on your own invites trouble.
Advertisement
Advertisement
Another important thing to do is empty your Trash when you're finished uninstalling. Moving a program's icon to the Trash doesn't actually remove the files from your hard disk or clear up any space. Only when you empty the Trash is the application really gone.
Here are some other important tips:
- When you install a program, check to see how to uninstall it. Make a note if it has its own uninstall utility or instructions.
- Before you begin any uninstalling process, check to make sure your Trash is empty or contains nothing you might want to save.
- Log on as your computer's administrator whenever you uninstall. If you're uninstalling at work and don't have administrator privileges, you'll have to consult with your tech people [source: Ritchie].
- If you opt for a third-party uninstall utility, look at the features. Some developers charge for their software, but you may not need the bells and whistles. Free utilities may work fine.
- It often makes sense to leave preference files alone. If you ever reinstall the same software, you won't have to set the preferences.
- Suites of software from a developer, such as the Office suite from Microsoft, often share files. Removing the files of one component may affect the others, so it's good to be cautious with these [source: The X Lab].
- If, after you remove a program, the icon is still in your dock, you can get rid of it by simply dragging it off the dock and letting it go [source: Tech-FAQ].
Removing software from your Mac is a lot less of a hassle than cleaning your office or garage. But clearing away computer clutter and making space on your hard disk can be just as satisfying.
Originally Published: Aug 8, 2011
Advertisement
Related Articles
Sources
- Landau, Ted. 'Tutorial: Now you see 'em, now you don't: Invisible files in Mac OS X,' cnet.com, May 19, 2004. (Feb. 14, 2019) https://www.cnet.com/news/tutorial-now-you-see-em-now-you-dont-invisible-files-in-mac-os-x/
- FacRumors. 'Uninstalling Applications in Mac OS X,' MacRumors.com. (Feb. 16, 2019) https://web.archive.org/web/20170715163609/http://guides.macrumors.com/Uninstalling_Applications_in_Mac_OS_Xp
- Ritchie, David. 'How to Uninstall Mac Programs,' TheMacLawyer.com. October 13, 2010. (Feb. 16, 2019) http://www.themaclawyer.com/2010/10/articles/guest-posts/guest-post-how-to-uninstall-mac-programs/
- Tanous, Jim. 'How to Uninstall & Remove Mac OS X Programs and Applications,' The Mac Observer. Feb. 1, 2013. (Feb. 16, 2019) https://www.macobserver.com/tmo/answers/how-to-uninstall-remove-mac-os-x-programs-and-applications
- Tech-FAQ. 'How to Uninstall Programs on a Mac,' Tech-FAQ.com. (Feb. 16, 2019) http://www.tech-faq.com/how-to-uninstall-programs-on-a-mac.html
- The X Lab. 'Uninstalling applications,' TheXLab.com. (Feb. 16, 2019) http://www.thexlab.com/faqs/uninstallingapps.html
One of the most basic computer functions — deleting files and folders — is also one of the most essential. If you never get rid of anything, soon enough all those extra gigabytes will take a toll on your Mac’s processing power, RAM, and hard drive, not to mention your digital life will resemble a dreadful episode of Hoarders.
So deleting files is good and healthy. But how do you do that? Most people right-click on what they need gone and choose Move to Trash from the menu or use the File option in the menu bar. Others employ the ⌘ + Delete shortcut, which works across the system (even within dialog windows). Experts, however, often find themselves defaulting to the command line delete directory feature. Let’s see how and why you should learn it too.
How to remove directory with Terminal
Since macOS is a Unix-based system, nearly all system tasks you do every day with the help of its graphic interface can also be performed via the command line tool called Terminal.
Simply right click on the app when it’s in your dock and choose Options Open At Login.However, the result may not be what you expected. /how-to-hide-minimized-apps-mac.html. Sure, the applications open when OS X loads up but the applications are visually open on your screen by default.This can be a visual nightmare. All those apps open = untidy & ugly!Wouldn’t it be nice to open applications at startup but to also have them minimize to the dock?
Why delete file command line feature is important
With regards to delete file or delete folder command line functionality, Terminal lets you:
Uninstall App Store App Mac
- Effortlessly erase one or multiple files, folders, and apps, bypassing any error messages you can get when you go the traditional route.
- Remove files from Trash, including ones you can’t delete by simply emptying the trash.
- Get rid of files that are invisible to you within Finder (usually system or root files, for example, .htaccess).
- Delete files and folders in cases when Finder is unresponsive.
Note: The Mac command line delete file feature is final and irreversible. While it lets you avoid any error messages, it also removes the files completely, without any possibility of retrieving them later on.
Tip: Delete unneeded system files on Mac
Some files are hard to delete in a normal way because they sit deeply in system folders. These are such files as logs, broken downloads, caches, remains of old apps, etc. Still, deleting them could give your Mac an extra boost — that's because they are outdated and clutter your macOS.
To dig these files out, try a free version of CleanMyMac X. Among other things, this app has an impressive System Junk detector. When you download CleanMyMac X (this free version is notarized by Apple), you need to click on System Junk.
Just take a loot at the sheer amount of files it unearthed. To delete them, click on Clean.
How to use delete file command line feature
Removing files from your Mac forever using Terminal is deceptively simple: just use the rm command followed by the name of the file. Here’s how it works in practice:
- Launch Terminal from your Utilities folder in Applications.
- Check which directory you’re in by typing ls -la
- Then navigate down a directory with cd [directoryname] or up a directory with cd ./
- When you’re in the same directory as the file you want to delete, type rm [filename.extension]
- If you want to delete multiple files at once, list them all, but make sure there’s a space between each one.
- Press Enter to execute the command.
Now all the files you specified after rm are gone for good. Navigate directories in your Mac and repeat the process as many times as you want.
Surprised there was no confirmation before your files were deleted? Luckily there’s a way to add one as a safeguard for not deleting the wrong file by accident. Just use -i after the rm but before the first filename, like this: rm -i [filename.extension]. Terminal will then ask you whether you’re sure you want to delete the file. Reply y or yes followed by Enter and the file will be gone. This also works for multiple files, but you’ll have to confirm the removal of each one separately.
How to make command line delete directory
Surprisingly, you can’t delete a folder using the rm command because it has its own: rmdir.
Otherwise, rmdir works exactly the same as rm:
- Navigate to the appropriate directory using Terminal.
- Type rmdir [directoryname]
- Hit Enter.
Sadly, you can’t use the -i hack when you’re deleting folders, so be extra careful!
Another thing to keep in mind is that rmdir only deletes the directory, but can’t delete any files or folders located within that directory.
To delete a folder with everything in it, you need to use rm -r followed by the folder’s name. Using -i to create a warning here is possible and done like this: rm -ir [foldername].
Uninstall Apps On Mac Using Terminal Commands
When it’s too difficult to find a folder or file via Terminal, but you can detect them in Finder, simply drag and drop the file onto the Terminal window to generate its path.
Delete large and old folders using CleanMyMac X
As it happens with folders, they are easy to mess up and lose track of. That's why many apps provide an alternative interface for searching and deleting files which is more flexible than the Finder. For example, using CleanMyMac X (the app we've mentioned above) you can find massive folders that might have been evading you. You also can filter them by file type and other criteria.
The latest released version of this tool looks like this:
This app by developer MacPaw is available for a free download here. Using this app, files are removed for good, and as far as we know, it's irreversible.
Other ways to delete files and folders on Mac
The shortcut combination
We are sure you know how to drag to your files to the Trash. But here is an alternative way which deletes files at once, bypassing the Trash. There’s one less step involved (you don’t have to empty the bin). And you cannot reverse this action.
Select a file, and press [Option + ⌘ + Delete]
Delete hidden folders on Mac
Some folders on your Mac are made invisible to protect them from accidental deletion. They are system and support files you would ignore most of the time. But what if a folder seems empty but still takes up space? You can apply another shortcut combination to highlight these unseen objects. Then, you can delete them at your own risk.
To highlight hidden folders: [Press Shift + ⌘ + . dot key]
This best works if you open some system folder, like Library
How To Delete Apps On Mac
Again, delete these folders only if you are sure what they are.
How To Uninstall Software On Mac
That was how to remove files and folders on your Mac, shown in multiple ways. Want to know more? Explore our blog for a whole universe of Mac tips!