This isn't built into OSX, but a guy wrote a cli tool called trash that is cross platform and is intended as a safe alternative to rm. As it seems it should, it moves the target to the trash rather than deleting it immediately.

There is more information and instructions on how to install at the trash github page

Answer from dwightk on Stack Exchange
🌐
Apple Community
discussions.apple.com › thread › 2449492
Removing/Uninstalling an application by Terminal
June 11, 2010 - There are also several shareware utilities that can uninstall applications: AppZapper CleanApp Yank SuperPop Uninstaller Spring Cleaning Look for them at VersionTracker or MacUpdate. For more information visit The XLab FAQs and read the FAQ on removing software. ... @WZZZ : Thanks for sharing this @Kappy : Nice Note !! Thank you So, at first at last, i will have to use one of the shareware utilities to completely uninstall an application.
🌐
Reddit
reddit.com › r/macos › using terminal to fully delete applications
r/MacOS on Reddit: Using Terminal to Fully Delete Applications
June 11, 2023 -

Hey guys, I was wondering if there was a way to remove an app fully with Terminal? Whenever I try to remove app and reinstall it with a new version with terminal it's the same old version but a higher size. Can anyone tell me what I am possibly doing wrong?

Discussions

macos - deleting app from terminal - Ask Different
from the /Applications folder, I can launch apps on my Mac using the open command in the terminal like this open xcode.app open firefox.app Is there a way to delete apps from the terminal? This qu... More on apple.stackexchange.com
🌐 apple.stackexchange.com
May 18, 2014
Trying to uninstall apps with terminal | MacRumors Forums
The command line that I saw was ... from the application folder and paste it on the terminal ). After putting my ADMIN password it says " sudo: uninstall: command not found". What could this be? Click to expand... That's not a thing. Some apps might have some sort of command line tool but there's nothing like that in macOS by ... More on forums.macrumors.com
🌐 forums.macrumors.com
September 11, 2020
New to Mac, how to completely uninstall app?
Here’s some information about how the Library folder is organized: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html You can just use AppCleaner to automate removing all of this stuff. More on reddit.com
🌐 r/MacOS
62
34
June 11, 2022
How To Use Terminal To Delete Apps?
Ok so I got into my data drive, I just gotta figure out where Adobe apps are stored lol. More on reddit.com
🌐 r/osx
12
1
November 17, 2019
People also ask

Why can't I uninstall apps on Mac?
One potential outcome of uninstalling apps on Mac is a notification stating, 'The item 'app name' can't be moved to the trash since it's open. This happens because you haven't completely dismissed the app, which is still running in the background.
🌐
easeus.com
easeus.com › mac cleanup resources › how to completely uninstall applications on mac
How to Completely Uninstall Applications on Mac
How to uninstall apps on Mac Monterey?

You can use conventional methods like removing applications to the Trash and the Launchpad of Monterey. The uninstallation process may be more straightforward using those traditional approaches. However, specialized program uninstallers, third-party applications, and Terminal commands can assist in removing the files in their entirety.

🌐
easeus.com
easeus.com › mac cleanup resources › how to completely uninstall applications on mac
How to Completely Uninstall Applications on Mac
How to delete apps on Mac that won't delete?
Utilizing Terminal to remove system-embedded programs might be helpful if you are good with technology
🌐
easeus.com
easeus.com › mac cleanup resources › how to completely uninstall applications on mac
How to Completely Uninstall Applications on Mac
🌐
Avast
avast.com › c-uninstall-mac-apps
How to Uninstall Apps on a Mac | Delete Mac Programs
April 8, 2024 - Now type: sudo rm -f <application name>. Replace <application name> with your app’s name, and make sure you add a space after -f. Then hit return and enter your password. It’s possible that some system files will remain after deleting the app.
🌐
Medium
medium.com › @polina.fomenkova1 › best-ways-to-uninstall-stubborn-mac-apps-completely-58f80fd4c269
Best ways to uninstall stubborn Mac apps completely
October 9, 2025 - To uninstall, you would then use a command like sudo rm -rf [AppName].app, where [AppName] is the exact name of the application folder you want to delete. Now I have a list, and from this I can identify the remnants of the Leftover App.
🌐
Dr.Buho
drbuho.com › how-to › uninstall-apps-on-mac-with-terminal
How to Uninstall Apps on Mac with Terminal Sudo Uninstall Command
June 4, 2025 - Find the target application in the right window, select it, and select all its related files. Click the Remove button to uninstall the app from your Mac with one click. Aside from using Terminal to uninstall applications, macOS also allows you to delete an app via Finder or Launchpad.
Find elsewhere
🌐
MacRumors
forums.macrumors.com › macs › macos › older macos versions › macos mojave (10.14)
Trying to uninstall apps with terminal | MacRumors Forums
September 11, 2020 - If I want to uninstall it I bring up the AppCleaner app and drag /Applications/BBEdit to the AppCleaner window which will find the preference files for BBEdit to be removed. With macOS, in most cases, there really is no need to use the Terminal to remove apps, it can be done from Finder.
🌐
Beebom
beebom.com › uninstall-programs-apps-mac
How to Uninstall Apps and Programs on Mac (6 Methods) | Beebom
January 13, 2025 - Depending on your Mac model, you’ll be asked to enter your Mac’s password or authenticate Touch ID to move that app to the Bin. To completely uninstall an app from your Mac, right-click on the Bin icon from the dock and choose Empty Trash.
🌐
MacPaw
macpaw.com › how to › optimization › apps
How to completely uninstall apps on Mac & remove leftovers
2 weeks ago - So, if you are not a confident ... willing to run several Terminal commands, follow these steps: Go to Applications > Utilities and open Terminal. Enter the following command: sudo uninstall file://...
🌐
EaseUS
easeus.com › mac cleanup resources › how to completely uninstall applications on mac
How to Completely Uninstall Applications on Mac
September 17, 2025 - Step 1. Open Finder and click the Applications folder on your Mac. Step 2. Search the application name to locate the uninstaller. The native uninstaller is usually named [app name] Uninstaller. Step 3. Double-click the uninstaller to launch it, and follow the onscreen instructions to uninstall the app and its associated files. ... Not all apps have a native uninstaller. If you can't find one, Google "[app name] uninstaller" and download the uninstaller from the app's official website. Terminal is a powerful tool for advanced Mac users, allowing you to perform tasks like deleting files, repairing the system, or uninstalling apps.
🌐
MacKeeper
mackeeper.com › blog › mac performance › how to uninstall apps on mac
How to Uninstall Apps on Mac? [Delete Programs from MacBook]
July 9, 2025 - Here’s the Terminal command to uninstall an app on Mac: Open Terminal. Type sudo uninstall file://, but don’t press enter. Drag an app you don’t want from Applications into Terminal.
🌐
CleanMyMac
cleanmymac.com › blog › uninstall-programs-mac
Delete Mac apps completely: 7 methods that work
November 5, 2025 - Another way to delete apps on a Mac is by using Terminal, and contrary to popular belief, it's pretty simple. Here's how: Open Finder > Applications > Utilities > Terminal. Type in the following command: sudo uninstall file://
🌐
Apple Support
support.apple.com › en-us › 102610
Delete or uninstall apps on Mac - Apple Support
January 20, 2026 - If your app includes an uninstaller, it’s the best way to delete the app and any login items, extensions, or other data the app might have stored in other locations. Some apps offer an uninstall (or remove or reset) feature as a menu item or setting within the app.
🌐
Nektony
nektony.com › home › how to › five ways to completely uninstall apps on a mac
How to uninstall apps on Mac - Complete guide (5 methods)
May 20, 2025 - In this guide, we’ll show you how to completely uninstall apps from Mac, including all their remaining files, so they’re really gone. You can do it manually or use a special Mac cleanup tool to make it easier. ... When you drag an application to the Trash, you’re only removing the main app file.
🌐
Reddit
reddit.com › r/macos › new to mac, how to completely uninstall app?
r/MacOS on Reddit: New to Mac, how to completely uninstall app?
June 11, 2022 -

Hi all - coming to Mac from Windows.

Are there some general rules for how to completely remove\uninstall an app?

I'm noticing that apps that I install will sometimes put files in random places such as
~/Library/Application Support/
~/Library/Preferences/

I'm not noticing any straightforward pattern in terms of where apps install auxiliary files.

Thanks!

🌐
Lifewire
lifewire.com › delete-apps-on-mac-that-wont-delete-8599133
How to Delete Apps on a Mac That Won't Delete
March 13, 2024 - In your Mac's Applications folder, click Utilities, and then double-click Terminal to launch it. Type sudo rm -rf. Other articles about this topic say the command sudo uninstall file:// is the way to delete apps.
🌐
XDA Developers
xda-developers.com › home › macos › how to completely uninstall an app on a mac and also delete its associated unwanted files
How to completely uninstall an app on a Mac and also delete its associated unwanted files
May 8, 2024 - Another way to uninstall a Mac app is through the Launchpad. Here's how: Go to the Launchpad. Click and hold on to the app icon. This will trigger Jiggle Mode. Hit the X button on the app you want to uninstall. Confirm by clicking the Delete button. If you're more of a Terminal commands kind of person, then there's a method for you:
🌐
OS X Daily
osxdaily.com › 2014 › 07 › 31 › manual-complete-app-removal-mac-os-x-terminal
How to Completely Remove Apps & Software in Mac OS X by Manual Terminal Uninstall
October 26, 2017 - Most apps in Mac OS X can be uninstalled easily by dragging them into the Trash from the /Applications/ folder, and many others come with accompanying uninstall applications that will clean house and completely remove the apps too.
🌐
Reddit
reddit.com › r/osx › how to use terminal to delete apps?
r/osx on Reddit: How To Use Terminal To Delete Apps?
November 17, 2019 -

I tried to install the new Catalina update, and I guess it didn't have enough space (it didn't say, it started the update process). I don't think it finished, and now I can't get past my login screen without my Macbook (Pro, 2015) shutting down. I've tried everything, and all I can think to do is free up space and re-install Catalina through recovery mode.

I need to free up 4 more gbs of space. I can't get to my applications folder, since I can't log in, so I was wondering how can I use the terminal to do it? I was going to delete my Adobe applications, but when I've followed instructions to get into my Applications folder path, I don't see any of the apps.

Any help/advice would be very appreciated. I really don't wanna have to wipe my drive.

🌐
Ascendant USA
ascendantusa.com › 2024 › 12 › 28 › uninstall-apps-on-your-mac
How to Uninstall Apps on Your Mac | Ascendant
October 21, 2025 - Uninstalling apps on a Mac requires more than just dragging them to the Trash; you need to remove associated files from the Library folder for a complete uninstall. Launchpad offers a user-friendly way to uninstall apps downloaded from the App Store by clicking the app icon and confirming deletion with an X button. For stubborn apps that won’t delete, try force quitting them or using Terminal ...