On my computer i have got 30GB of junk files. I looked for it everywhere. In both Librarires and other folders. So, is there some method to identify those files and delete them? Some kind of script or app.
Thanks!
Asked
Active
Viewed 3,704 times
-1
-
4How do you know it's junk? – lhf Jul 22 '13 at 16:29
-
The script is easy (and very dangerous)- for file in `cat /path/to/junk.txt`; do rm $file; done but it should probably test that you have a good backup that you can restore if it deletes files that are needed rarely (like at boot time) and not really junk. – bmike Jul 23 '13 at 12:13
4 Answers
2
There are a number of apps which will show you how your disk space is being used. My preference is OmniDiskSweeper which is free. Launch it and have it search your $HOME folder (⌘ + Shift + H) and it will sort the directories according to disk usage.

TJ Luoma
- 20,659
1
You can also enable calculating all sizes from the view options in Finder:
You can show hidden files by running defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder
.
Part of the disk space could be taken up by /var/vm/sleepimage
if you have a laptop, or by /Volumes/MobileBackups
if you use Time Machine.
Related questions:
-2
Try "CleanMyMac 2" its quite good app , removes lot of junk files and improves the performance considerably.
-
1
-
1By what measure is performance improved? I've found most apps like this take the user 30 minutes to find and install and usually they end up costing time down the road when deleted files are needed later (or cause errors in update packages when files with receipts showing them installed are now gone). I can't say this CleanMyMac 2 app is snake oil, but some details might let others know its not. As a category, the value of a "magic tool" is often over-hyped and the downsides of them get downplayed by vendors and their advocates. – bmike Jul 23 '13 at 14:02