To uninstall an app from the terminal, go to Finder, then go to Applications. Next, go to Utilities, and then go to Terminal. Add the following command to the command line: sudo uninstall file://. After that, go to the Applications folder and drag the app’s icon to the terminal window.