Google Chrome, The Storage Hoarder

Background

Here is Wikipedia’s definition of a Hoarder :-

Compulsive hoarding, also known as hoarding disorder, is a behavioral pattern characterized by excessive acquisition of and an inability or unwillingness to discard large quantities of objects that cover the living areas of the home and cause significant distress or impairment.

Troubleshooting

SpaceSniffer

Ran SpaceSniffer and quite a bit of storage is accosted to Google Chrome.

spaceSniffer.20190425.0414PM.PNG

Command Shell

Launch Command Shell in Administrator mode.

Google’s cache is stored under %HOMEDRIVE%%HOMEPATH%\AppData\Local\Google\Chrome\User Data.

Please navigate to that folder and confirm the files and sizes.

Dir

Please issue something like

Command


dir "%HOMEDRIVE%%HOMEPATH%\AppData\Local\Google\Chrome\"User Data"\

Output

dir.20190425.0347PM

Interpretation

Took the ugly final size of 100,781,865,625 bytes to Goggle and converted it to a more human friendly number.

google.bytes.to.GB.20190425.0348PM

So here we are 100 GB.

Remediationdir.20190425.0347PM.PNG

Script

DOS Batch


@echo off
setlocal

set "_delApp=del"
set "_delOption=/F /S /Q"

set "_userData=%HOMEDRIVE%%HOMEPATH%\AppData\Local\Google\Chrome\User Data\"

echo %_userData%

%_delApp% "%_userData%" %_delOption% 

endlocal

Output

pruneFiles.20190425.0405PM.PNG

Summary

Once the script completes, you may have to close out running Chrome Sessions or reload them to adjust for loss of cache.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s