Delete Cached Files in Google Desktop for the Mac?

morerandomgobbledygook in Google Desktop cache

As frustrated as I've been with Spotlight and all that I think it should be able to do but just doesn't quite get right, I was interested in today's news that Google Desktop is finally available for the Mac. Finally, I can search my Gmail account from my desktop and use some more sophisticated search syntax. This could be quite handy and should really put the pressure on Apple to beef up Spotlight in its Leopard release.

But, as is usual with every useful new tool Google releases, this one comes with something that gets me a little nervous (beyond the anxiety associated with the fact that I've become increasingly reliant on Google for so much of my information storage and retrieval). I'm talking about this "feature," pointed out by The Unofficial Apple Weblog:

Thanks to the way that Google Desktop works, it can even search files that you have deleted from your system. Google Desktop creates a cache on your machine that holds information about the various files that it has indexed.
Now, I don't know about you, but when I delete a file, I generally want to delete it. There may be a few occasions when I accidentally or thoughtlessly delete something I'll actually need later, but I'm more concerned with others searching for sensitive material on my computer that I've already decided I want gone, and I'm sure others will find plenty of other reasons for not wanting Google Desktop keeping a cache of their entire file history.


That's why I was happy to find that the TUAW article goes on to suggest that you can actually turn off caching:

Luckily, you can tell Google Desktop not to keep cached copies of deleted files.

That would be great news, if it were true, but it turns out that what I assumed was insider information (based, perhaps, on communication with Google during prerelease evaluation) turned out to be just an ungrounded assumption. I decided to put this preference change to the test, going just just beyond where TUAW ended their own trial.

First, I did everything TUAW did, substituting "randomgobbledygook" (a word I was pretty sure didn't appear anywhere on my computer) for "tuawrocks" in their scenario:

I created a test document that simply said 'tuawrocks,' a phrase that was no where on my computer before I created this file. Both Google Desktop and Spotlight immediately found the file when I searched for the phrase 'tuawrocks.' I then deleted the file, emptied my Trash, and searched for 'tuawrocks' once more. As you would expect Spotlight informed me that there were no files that met my criteria, but Google Desktop had a cached version of the file that I was able to look at (much like Google's web cache that allows you to look at websites that have gone offline for whatever reason).
Looking at the "Search Results" area of the Preferences pane, I questioned the name of the "Display results for deleted documents" (emphasis mine) setting, which suggests that this preference is actually a display issue only, not an indexing or caching change. So, I unchecked the setting:


Don't Display Cached Results

Then, I ran the test again with a file called "morerandomgobbledygook," deleting it after I created it and confirmed that Google Desktop had indexed it. As you would expect, after I emptied the trash, it didn't show up in my search results. But all I had to do was go back into the Preference pane and re-enable "Display results for deleted documents":

Display Cached Results

Then, by gosh, running that search for "morerandomgobbledygook" brought that cached file right up:

morerandomgobbledygook in Google Desktop cache

Clicking on the search result opens the entire file (in this case, a text file) in your default browser, like so:

cached_file.jpg
So, if all you're trying to do is unclutter your search results by getting rid of distracting cached files, you can certainly do that. But beware that you're not actually keeping Google Desktop from creating, keeping, and indexing those (deleted) cached files. I'm looking forward to that ability in a future release ... unless some enterprising hacker out there can give it to me first.


Recent Entries

Comments

Oldest comments listed first.

Posted by: radiorental on April 4, 2007 at 9:57 AM

Whats not clear from this test is if the result are cached or the file it.

I would put two words in the deleted file.
Search for the first keyword
File gets cached
delete the file
Search for the second keyword

I read somewhere that the cache file can be no bigger than a gig. So while it not very cool that deleted files are throwing up results, this -may- be nothing more than a search history issue.

With regards to google.com searches resulting in offline websites. Thats a completely different kettle of fish, they make copies of sites to aid the speed of their search array. I would not think google desktop makes a duplicate of all the text on my HD... does it??


Posted by: BrianSawyer on April 4, 2007 at 10:04 AM

It is indeed the file itself stored in cache, not just the search result, at least in my test. I saved a text file and deleted it. The cached result opened the entire deleted file in Firefox.


Posted by: BrianSawyer on April 4, 2007 at 10:18 AM

I've updated the post to show the result of opening the cached file from the search results. Note that the highlighted text in Firefox indicates the contents of the file, not the filename. I replicated the test with much larger text files and received the same result.


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television




Check out more videos from MAKE.

MZ_Jameco-RobotBuild_RR.gif
MZ_DIYMovieMaking-RR.gif
Maker SHED

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter



    MAKE Archives

    Make: Money

    Make: Science Room
    Subscribe to MAKE Magazine!

    Make: Online editors and authors!

    Gareth BranwynGareth Branwyn
    Editor-in-Chief


    Phillip TorronePhillip Torrone
    Senior Editor
    | Web | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter


    John BaichtalJohn Baichtal
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Current Podcast

    itunesdl.gif John Park in the Maker Shed: tinyCylon kit build They let me loose in the Maker Shed, so I grabbed a tinyCylon Kit, built it, and embedded it in a busted Nerf gun! More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    Sign up for the Make: Newsletter

    Our Make: Newsletter covers news from maker Media, has original columns, Shed deals, and more! You can also read the archives of past issues.


     



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog