How To Delete Line App From Mac

  

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

(Open the command line first of course. You can do this by mashing Win + R, then typing “cmd”. Or just type “cmd” in the Start Menu search box.) del /s /q /f /a.DSSTORE. That will find every instance of this Mac resource file and delete it. But wait there’s more.

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.

Why delete file command line feature is important

With regards to delete file or delete folder command line functionality, Terminal lets you:

  • 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:

  1. Launch Terminal from your Utilities folder in Applications.
  2. Check which directory you’re in by typing ls -la
  3. Then navigate down a directory with cd [directoryname] or up a directory with cd ../
  4. When you’re in the same directory as the file you want to delete, type rm [filename.extension]
  5. If you want to delete multiple files at once, list them all, but make sure there’s a space between each one.
  6. 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:

  1. Navigate to the appropriate directory using Terminal.
  2. Type rmdir [directoryname]
  3. 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].

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

Again, delete these folders only if you are sure what they are.

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!

Quick question – how do you uninstall programs on Mac?

If your answer is to drag the app to the Trash, we’re sorry to say that you’ve been doing it wrong.

You probably know or guess that you can remove apps by dragging them to the Trash bin, but it is not quite so. Dragging normal files like documents and movies to the Trash works fine. But doing the same for apps leaves gigabytes of leftover junk files on your hard drive. We’re going to show you what gets left behind and what you can do to completely uninstall apps from here on out.

How to uninstall on Mac

If you are trying to delete an old application, reinstall a corrupted software or just free up disk space on your Mac, removing all components of the program is important. These include the app, its preferences and support files, and sometimes other hidden files.

To completely uninstall a program on Mac you have to choose one of three options:

  • Using Trash.
  • Using Launchpad.
  • Using a native uninstaller

The ways mentioned above include navigating your Mac’s in search of the apps you want to remove and then locating their remaining data. The latter can take even more place than the app itself and can be stored anywhere in your folders.

I prefer clearing my Mac from apps using special software made for this particular task - CleanMyMac X. It’s Uninstaller feature, is an app-killer that sweeps away any program you don’t want on your Mac and clears remaining junk.

Now let’s go ahead and delete some apps!

1. Uninstall Mac apps using Trash

Whether you're running macOS Catalina or an earlier macOS, like Mojave or Sierra, the process of manually uninstalling remains relatively similar. Here’s what you need to do:

How To Delete Line App From Mac

How To Delete Line App From Macbook

  1. Open Finder.
  2. Go to Applications.
  3. Choose the app you want to delete.
  4. Press Command + Delete (⌘⌫).
  5. Open Trash.
  6. Click the Empty button in the upper-right corner of the window.

And the app is gone.

Even uninstalling apps on macOS Catalina requires getting rid of leftovers, despite the fact that it's the latest and the most sophisticated system for Mac. Apple has done such a good job on macOS 10.15 but left this unfortunate issue unresolved for another year.

To completely remove programs from Mac manually, you have to find all the associated files that come along with the app. That means not just dragging the app icon to the Trash from your Applications folder, but searching the depths of the system files on your Mac.

We’re going to reveal the locations of the most common files that are associated with apps. To remove the app leftovers from your Mac just navigate to each of these folders and hunt for the app you want to remove. If you find files with the app name you can send them to the Trash.

So, when uninstalling any software, you have to go over each of these folders one by one and remove the following:

  • Binary and dock icons are located in /Applications/
  • Application support files are located in ~/Library/Application Support
  • Support Caches can be found in /Library/Caches/ and
    ~/Library/Caches
  • Plugins are located in ~/Library/Internet Plug-Ins/
  • Library can be found in ~/Library/
  • App preferences are located in ~/Library/Preferences/
  • Crashes are found in
    ~/Library/Application Support/CrashReporter/
  • App saved states are located in
    ~/Library/Saved Application State/

There are many more hidden files, some of which cannot be accessed by the user. And macOS/OS X will prevent you from deleting some app files.

As you can see, it's not that easy to uninstall applications Mac doesn't need, even when you know what to do. By the way, be sure to look for the name of the app in the file names of the files you remove. Don’t remove anything you don’t know! Do your due diligence before removing something from your system.

When you delete software on Mac manually, be sure only to remove an app file or folder when you’re sure of what it is. Look at the name very carefully before you nuke it. Removing the wrong files could cause problems with your system.

Remember, please be careful when deleting system files — you never know how it will affect your Mac if you remove the wrong ones (or the right ones for that matter!).

How To Delete Apps From Laptop

2. Uninstall Mac programs with Launchpad

App

How to uninstall on Mac by using the Launchpad? It's easy and this manual method works like this:

  1. Click Launchpad icon in your Mac's Dock.
  2. Find the app you want to delete.
  3. Click and hold the app until it starts shaking.
  4. Click X in the top-left corner of the app icon.
  5. Click Delete.

This will uninstall the app from your Mac. However, keep in mind that after removing the program, you should also delete its leftovers as we've described above.

Can't delete apps on Mac?

Unfortunately, manual methods won’t get everything. Some apps are pre-installed macOS components and protected by the system while others will refuse to delete because they are already open (even though that’s often not true).

So, how to delete the apps on Mac that won't delete? You can try the manual removal after force quitting the app in question (press Command-Option-Esc and if the app is on the list shut it down) or rebooting your Mac.

If you're still unable to delete apps on Mac or if you’re worried you won't do it correctly and want a safer alternative, there’s the easy method of uninstalling apps from your Mac so you don't have to force delete applications. It actually does a better (and safer) job and in a fraction of the time. Read on to learn how to delete apps on Mac automatically.

3. Uninstall apps with CleanMyMac X

When I referred to the easy method of uninstalling apps, I meant using CleanMyMac X. As for me, deleting apps is a pretty tiresome task. I’ve always put away this chore, as it will waste a huge amount of my time. But, my Mac was running low on free storage, so I decided to try CleanMyMac X to fix this problem and uninstall programs on Mac with ease. I used the Uninstaller module to get rid of multiple apps at once. Here’s what you need to do:

  1. Download CleanMyMac X, install, and launch it (it takes less than a minute).
  2. Go to Uninstaller.
  3. Choose All Applications.
  4. Check the boxes next to the app you want to remove.
  5. Press Uninstall.

As you can see, CleanMyMac X shows precisely how much place each app takes, so it’s easier to detect the heaviest programs. Another benefit is that you can bulk uninstall programs on Mac without dragging each app and its files to the Trash.

Is it possible to delete system files on Mac?

CleanMyMac X doesn’t let you delete system apps like Safari. Neither of Mac cleaners can do that. But, CleanMyMac X allows you to delete the data associated with system apps and reset them completely. Click CleanMyMac X’s menu in the upper-left corner and choose Preferences. Go to Ignore List and click Uninstaller. Here uncheck the box next to “Ignore system applications.”

Now, you can close Preferences and go back to Uninstaller. Click ► next to the app's icon to show its files. Then check the data you want to delete and choose Reset from the drop-down list next to the app’s icon. Then press Remove.

It will help to clear some space on your Mac. Note that your app logs may also disappear after the reset.

4. Use the native uninstaller

How To Delete Line App From Mac Catalina

Many applications are designed to clean after themselves. They come with a built-in uninstaller — a self-destroying utility bundled with the main app. This is mostly true for third-party apps that you download from the internet. That’s why native uninstallers remain more of a Windows thing, not much heard of in the Mac world.
The original uninstallers can be found in Finder > Applications. If your app looks like a folder (within the Applications folder) most likely it will have a separate uninstaller. The name will read [Your app] Uninstaller or Uninstall [Your App].

How To Delete Default Apps On Mac

Open the folder, find the launcher, and just follow the onscreen instructions. After the removal is complete, you can enjoy your extra storage space!

Clear app leftovers: preferences files and caches

No sane developer wants people to delete their application. As your desperate ex, they would do everything to stay on your Mac, like planting pieces of their software around your Mac so one day they can return. Support files, preference files, and caches — all these will likely remain even if you’ve deleted the app itself.
Here I’ll show you how to root out these remaining traces. I’ll use the Telegram app as an example.

Delete application support files

Click on Finder > Go to Folder… (in the upper menu).
Paste in: ~/Library/Application Support/Your App Name

In my case it's: ~/Library/Application Support/Telegram

Now, delete the content of this folder.

Delete application Preferences

The Preferences folder contains your user settings. These files are tiny but there’s no reason not to delete them, just out of principle.
Click on Finder > Go to Folder…
Paste in: ~/Library/Preferences/

Open the folder. Now type the name of your app in the search bar. Click to search 'Preferences.” Delete the found items.

Delete the caches

In the same vein, you’ll have to delete the remaining app caches.
This time, use the following command to paste in Finder > Go to Folder...
Paste this: ~/Library/Caches/Your App Name

Note: In some cases, you need to search for the app developer's name, rather than the name of the app.

Delete leftovers with CleanMyMac X

If you’ve been doing a 'spring cleaning' in your Applications folder, chances are some files are still left somewhere in your Mac’s system. CleanMyMac X detects and collects them into the Leftovers tab.

Go to Uninstaller once again and select Leftovers. Select all the remaining files and press Uninstall to say goodbye to the app remains.

Now you are just as good at uninstalling applications on Mac as any Apple engineer. Hopefully, you now have plenty of free space. Don't miss a few related articles below.

These might also interest you: