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.
- Sep 30, 2020 Don't worry when your files, folder, or documents show empty suddenly. If your Mac document folder shows empty all of a sudden, we can help. On this page, you will learn why do files disappear from the Mac document folder and get the best Mac data recovery tool - EaseUS Data Recovery Wizard for Mac to get everything back from the empty Mac Documents folder immediately.
- See items you downloaded. In the Safari app on your Mac, click the Show Downloads button near the top-right corner of the Safari window. The button isn’t shown if the downloads list is empty. Pause a download: Click the Stop button to the right of the filename in the downloads list. To resume, click the Resume button.
On your Mac, click the Trash icon in the Dock. In the window that appears, do one of the following: Empty one item from the Trash: Control-click the item you want to delete, then choose Delete Immediately. In the warning message that appears, click Delete. Empty all of the Trash: Click the Empty button in the upper-right corner of the Finder window. Click on the item in the Finder's sidebar with the house icon, double-click the Downloads folder, and move the items inside to the desktop, trash, or elsewhere as desired. To delete the contents of the Trash, control-click it and choose Empty Trash.
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.
Why delete file command line feature is important
With regards to delete file or delete folder command line functionality, Terminal lets you: https://machinesnew817.weebly.com/chameleon-mac-os-x-snow-leopard-download.html.
- 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.
Vray for sketchup 2015 free download mac. 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
![Download Download](/uploads/1/2/6/7/126740295/227358999.jpg)
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.
https://machinesnew817.weebly.com/blog/download-photos-from-nikon-z6-to-mac. Just take a loot at the sheer amount of files it unearthed. To delete them, click on Clean.
https://machinesnew817.weebly.com/blog/download-photos-from-nikon-z6-to-mac. 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].
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:
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]
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
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!
Optimized Storage in macOS Sierra and later* can save space by storing your content in iCloud and making it available on demand. When storage space is needed, files, photos, movies, email attachments, and other files that you seldom use are stored in iCloud automatically. Each file stays right where you last saved it, and downloads when you open it. Files that you’ve used recently remain on your Mac, along with optimized versions of your photos.
* If you haven't yet upgraded to macOS Sierra or later, learn about other ways to free up storage space.
Find out how much storage is available on your Mac
Choose Apple menu > About This Mac, then click Storage. Each segment of the bar is an estimate of the storage space used by a category of files. Move your pointer over each segment for more detail.
Click the Manage button to open the Storage Management window, pictured below. This button is available only in macOS Sierra or later.
Manage storage on your Mac
The Storage Management window offers recommendations for optimizing your storage. If some recommendations are already turned on, you will see fewer recommendations.
Download adobe flash player for free mac.
Store in iCloud
Click the Store in iCloud button, then choose from these options:
- Desktop and Documents. Store all files from these two locations in iCloud Drive. When storage space is needed, only the files you recently opened are kept on your Mac, so that you can easily work offline. Files stored only in iCloud show a download icon , which you can double-click to download the original file. Learn more about this feature.
- Photos. Store all original, full-resolution photos and videos in iCloud Photos. When storage space is needed, only space-saving (optimized) versions of photos are kept on your Mac. To download the original photo or video, just open it.
- Messages. Store all messages and attachments in iCloud. When storage space is needed, only the messages and attachments you recently opened are kept on your Mac. Learn more about Messages in iCloud.
Storing files in iCloud uses the storage space in your iCloud storage plan. If you reach or exceed your iCloud storage limit, you can either buy more iCloud storage or make more iCloud storage available. iCloud storage starts at 50GB for $0.99 (USD) a month, and you can purchase additional storage directly from your Apple device. Learn more about prices in your region.
Optimize Storage
Click the Optimize button, then choose from these options.
- Automatically remove watched movies and TV shows. When storage space is needed, movies or TV shows that you purchased from the iTunes Store and already watched are removed from your Mac. Click the download icon next to a movie or TV show to download it again.
- Download only recent attachments. Mail automatically downloads only the attachments that you recently received. You can manually download any attachments at any time by opening the email or attachment, or saving the attachment to your Mac.
- Don't automatically download attachments. Mail downloads an attachment only when you open the email or attachment, or save the attachment to your Mac.
![Empty Empty](/uploads/1/2/6/7/126740295/551632377.png)
Optimizing storage for movies, TV shows, and email attachments doesn't require iCloud storage space.
Empty Trash Automatically
Empty Trash Automatically permanently deletes files that have been in the Trash for more than 30 days.
Reduce Clutter
Reduce Clutter helps you to identify large files and files you might no longer need. Click the Review Files button, then choose any of the file categories in the sidebar, such as Applications, Documents, Music Creation, or Trash.
You can delete the files in some categories directly from this window. Other categories show the total storage space used by the files in each app. You can then open the app and decide whether to delete files from within it.
Learn how to redownload apps, music, movies, TV shows, and books.
Where to find the settings for each feature
The button for each recommendation in the Storage Management window affects one or more settings in other apps. You can also control those settings directly within each app.
- If you're using macOS Catalina, choose Apple menu > System Preferences, click Apple ID, then select iCloud in the sidebar: Store in iCloud turns on the Optimize Mac Storage setting on the right. Then click Options next to iCloud Drive: Store in iCloud turns on the Desktop & Documents Folders setting. To turn off iCloud Drive entirely, deselect iCloud Drive.
In macOS Mojave or earlier, choose Apple menu > System Preferences, click iCloud, then click Options next to iCloud Drive. Store in iCloud turns on the Desktop & Documents Folders and Optimize Mac Storage settings. - In Photos, choose Photos > Preferences, then click iCloud. Store in iCloud selects iCloud Photos and Optimize Mac Storage.
- In Messages, choose Messages > Preferences, then click iMessage. Store in iCloud selects Enable Messages in iCloud.
- If you're using macOS Catalina, open the Apple TV app, choose TV > Preferences from the menu bar, then click Files. Optimize Storage selects “Automatically delete watched movies and TV shows.”
In macOS Mojave or earlier, open iTunes, choose iTunes > Preferences from the menu bar, then click Advanced. Optimize Storage selects “Automatically delete watched movies and TV shows.” - In Mail, choose Mail > Preferences from the menu bar, then click Accounts. In the Account Information section on the right, Optimize Storage sets the Download Attachments menu to either Recent or None.
Empty Trash Automatically: From the Finder, choose Finder > Preferences, then click Advanced. Empty Trash Automatically selects “Remove items from the Trash after 30 days.”
Other ways that macOS helps automatically save space
With macOS Sierra or later, your Mac automatically takes these additional steps to save storage space:
- Detects duplicate downloads in Safari, keeping only the most recent version of the download
- Reminds you to delete used app installers
- Removes old fonts, languages, and dictionaries that aren't being used
- Clears caches, logs, and other unnecessary data when storage space is needed
How to free up storage space manually
How To Empty Download Folder On Mac Download
Even without using the Optimized Storage features of Sierra or later, you can take other steps to make more storage space available:
- Music, movies, and other media can use a lot of storage space. Learn how to delete music, movies, and TV shows from your device.
- Delete other files that you no longer need by moving them to the Trash, then emptying the Trash. The Downloads folder is good place to look for files that you might no longer need.
- Move files to an external storage device.
- Compress files.
- Delete unneeded email: In the Mail app, choose Mailbox > Erase Junk Mail. If you no longer need the email in your Trash mailbox, choose Mailbox > Erase Deleted Items.
Learn more
How To Empty Folder Outlook
- The Storage pane of About This Mac is the best way to determine the amount of storage space available on your Mac. Disk Utility and other apps might show storage categories such as Not Mounted, VM, Recovery, Other Volumes, Free, or Purgeable. Don't rely on these categories to understand how to free up storage space or how much storage space is available for your data.
- When you duplicate a file on an APFS-formatted volume, that file doesn't use additional storage space on the volume. Deleting a duplicate file frees up only the space required by any data you might have added to the duplicate. If you no longer need any copies of the file, you can recover all of the storage space by deleting both the duplicate and the original file.
- If you're using a pro app and Optimize Mac Storage, learn how to make sure that your projects are always on your Mac and able to access their files.