Results 1 to 7 of 7
  1. #1


    Member Since
    May 24, 2012
    Posts
    2
    Oops...20GB file buildup
    Hello. I'm a (semi-new) Mac developer. I've been working on a component to my app that - in order to function properly - needs to download a fairly large file from the internet. I thought this file would be stored in memory (and would be removed once the app no longer needed it), but it's actually stored in the /var folder. I've been running and debugging this component for numerous days, which means roughly 20GB of unnecessary files have built up. Of course, I quickly changed my code to remove this file once it's no longer needed, but now I have a big, single 20GB file on my system that I must get rid of. I have a 64GB MBA, so I need all the space I can get. I know I shouldn't ever mess with the /var folder. Any ideas as to how I can hunt these files down and remove them? I have a whole bunch of custom stuff on my system, so I really don't want to do a clean install of Lion. Thanks ahead of time!

  2. #2


    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    20,911
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Since you know the exact file you're looking to get rid of, this is an occasion where you can use a third-party tool to remove it pretty easily.

    I like Grand Perspective (free), but there are similar tools like Disk Inventory X (also free). Both do the same thing -- provide you with a visual representation of the files on your HD. Spotting the 20GB rogue files should be very simple, and you can delete them (and only them!) from within the program. Restart and all good.

  3. #3

    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,430
    Specs:
    21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
    There is also Daisy Disk that does a excellent job with a good visual of your HD

    Someone might no of a Terminal command as well to find that file and trash it from within.
    Cheers
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  4. #4


    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    20,911
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    There's nothing in Terminal that gives you the reassurance of a VISUAL map of the files.

    I've had WAY too many stories of people going into folders like /var and using "rm" higgeldy-piggeldy with DISASTROUS results.

    Plus, I'm lazy. Color-coded visual file map for free with easy, safe deleting FTW IMO.

  5. #5

    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,430
    Specs:
    21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
    Quote Originally Posted by chas_m View Post
    There's nothing in Terminal that gives you the reassurance of a VISUAL map of the files.

    I've had WAY too many stories of people going into folders like /var and using "rm" higgeldy-piggeldy with DISASTROUS results.

    Plus, I'm lazy. Color-coded visual file map for free with easy, safe deleting FTW IMO.
    I agree completely, but there are some that swear by the Terminal command. For a developer it could be for them.

    Cheers
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  6. #6


    Member Since
    May 24, 2012
    Posts
    2
    Well...Yes. I actually used daisy disk to spot this file. Finding it isn't the problem. I'm not sure if the system (and other apps) have thrown important files in that huge file. Because my disk is only 64GB, I watch my files closely. I know this file was 5GB before I debugged this part of my app. I only want to delete the files I downloaded. I plan on upgrading to a MacBook Pro this summer when they're released, and I don't wan't this going on to my new system (I plan on transferring my files and not "starting fresh"). Thats my problem. Any ideas? I guess I can clone my drive, delete it, and if something fails, just restore back...

    This is what it looks like in DaisyDisk. It's the entire orange section.
    Screen Shot 2012-05-24 at 11.31.28 PM.png

  7. #7


    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    20,911
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Your last sentence contains the answer you are looking for.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Oh .. No .. Oops..
    By xsx- in forum OS X - Operating System
    Replies: 7
    Last Post: 06-10-2007, 08:17 AM
  2. oops!
    By Kahlan in forum Switcher Hangout
    Replies: 2
    Last Post: 05-26-2005, 12:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •