Go Back   Steam Users' Forums > Steam Discussions > Help and Tips

Reply
 
Thread Tools Display Modes
Old 12-18-2010, 12:53 PM   #1
whisperity
 
Join Date: Jan 2010
Reputation: 187
Posts: 858
Setup and use CCleaner to wipe Steam temporary files

I think you should've came into contact with CCleaner, which is an awesome tool. It can be set to wipe out directories and dir-trees even, and I added every single Steam-related directory which stores temporary content (caches).

The first thing we going to need (for faster and easier setup) is to set CCleaner to Portable mode. In portable mode, CCleaner will write it's settings to an ini (obliviously ccleaner.ini) rather than to the system registry.

Setting CCleaner portable

Fire up CCleaner. Go to Options -> Advanced. Tick Save all settings to INI file. Close CCleaner.

Altering settings with INI modification
Now you'll find an INI files in the same directory as the exe (default: C:\Program Files\CCleaner).

Depending on your personal settings, it's basic content should be something like this:
Code:
[Options]
(App)Clipboard=True
(App)Custom Folders=True
(App)DNS Cache=True
(App)Empty Recycle Bin=True
(App)Hotfix Uninstallers=False
(App)IIS Log Files=False
(App)Interface=True
(App)MS Photo Editor=True
(App)Menu Order Cache=False
(App)Mozilla - Compact Databases=False
(App)Mozilla - Cookies=True
(App)Mozilla - Download History=False
(App)Mozilla - Internet Cache=True
(App)Mozilla - Internet History=False
(App)Mozilla Chrome - Session=True
(App)Old Prefetch data=True
(App)RegEdit=True
(App)Temporary Files=True
(App)Tray Notifications Cache=False
(App)User Assist History=False
(App)VNCViewer 4=False
(App)Window Size/Location Cache=True
(App)Wipe Free Space=False
AutoClose=0
BackupPrompt=0
DefaultDetailedView=1
DelayTemp=0
HideWarnings=0
Language=1033
MSG_CONFIRMCLEAN=False
MinimizeSystemTray=0
UpdateKey=11/05/2010 05:56:18 PM
WINDOW_HEIGHT=450
WINDOW_LEFT=0
WINDOW_MAX=1
WINDOW_TOP=0
WINDOW_WIDTH=620
WipeFreeSpaceDrives=
It's content does not matter, only what we need to add to the INI.

To add external directories for cleaning, we have to use a specified format. (You can also browse every directory one-by-one using the Include tab of options, however, this way is easier.)

IncludeNumber=PATH|path|files(|type)

number is auto-increasing ID
path is the path to be wiped
You can specify only to wipe selected file formats by altering the files variable. Default is *.* which will delete everything.

type is a tricky part. Using the GUI, you have three options how to wipe:
  1. Include files only
  2. Include files and subfolders
  3. Include files, subfolders and the folder itself

Now to specify this, the type values are:
  1. The first option is NULL, you mustn't specify type
  2. |RECURSE
  3. |REMOVESELF

Add these content to the end of the INI.
Please be sure if you remove or add the line, to the IncludeX numbers are properly increasing. Also be sure that you changed D:\Program Files\ for your Steam install directory.

The basic Steam cache directories are:
Code:
Include1=PATH|D:\Program Files\Steam\|*.log;*.last;*.mdmp
Include2=PATH|D:\Program Files\Steam\appcache\httpcache\|*.*|RECURSE
Include3=PATH|D:\Program Files\Steam\config\cookies|*.*|RECURSE
Include4=PATH|D:\Program Files\Steam\config\htmlcache|*.*|RECURSE
Include5=PATH|D:\Program Files\Steam\config\overlaycookies|*.*|RECURSE
Include6=PATH|D:\Program Files\Steam\config\overlayhtmlcache|*.*|RECURSE
Include7=PATH|D:\Program Files\Steam\dumps\|*.*|RECURSE
Include8=PATH|D:\Program Files\Steam\logs\|*.*|RECURSE
Games in common directory:
Code:
Include9=PATH|D:\Program Files\Steam\steamapps\common\left 4 dead\left4dead\downloads\|*.*|RECURSE
Include10=PATH|D:\Program Files\Steam\steamapps\common\left 4 dead 2\config\html\|*.*|RECURSE
Include11=PATH|D:\Program Files\Steam\steamapps\common\left 4 dead 2\left4dead2\downloads\|*.*|RECURSE
Games in ACCOUNTNAME directory:
Counter-Strike: Source
Code:
Include12=PATH|D:\Program Files\Steam\steamapps\accountname\counter-strike source\config\html\|*.*|RECURSE
Include13=PATH|D:\Program Files\Steam\steamapps\accountname\counter-strike source\cstrike\downloads\|*.*|RECURSE
Garrys's Mod
Code:
Include14=PATH|D:\Program Files\Steam\steamapps\accountname\garrysmod\config\html\|*.*|RECURSE
Include15=PATH|D:\Program Files\Steam\steamapps\accountname\garrysmod\garrysmod\cache\|*.*|RECURSE
Include16=PATH|D:\Program Files\Steam\steamapps\accountname\garrysmod\garrysmod\downloads\|*.*|RECURSE
Half-Life 2: Deathmatch
Code:
Include17=PATH|D:\Program Files\Steam\steamapps\accountname\half-life 2 deathmatch\config\html\|*.*|RECURSE
Include18=PATH|D:\Program Files\Steam\steamapps\accountname\half-life 2 deathmatch\hl2mp\downloads\|*.*|RECURSE
Team Fortress 2
Code:
Include19=PATH|D:\Program Files\Steam\steamapps\accountname\team fortress 2\config\html\|*.*|RECURSE
Include20=PATH|D:\Program Files\Steam\steamapps\accountname\team fortress 2\tf\downloads\|*.*|RECURSE
After that, we're done with the setup. Save the INI, and close it.

Cleaning

Fire up CCleaner again. (You can check going to Options -> Include to see the directories there.)
On the Cleaner section, in the Windows tree, tick in Advanced\Custom Files and Folders.
Hit Analyze. CCleaner will now search for the custom files (process will consume more time than usual), and after that, click . Steam cached should be wiped from now.

Setting back from portable mode

Go to Options -> Advanced. Untick Save all settings to INI file.

Your registry will be updated with the setting, and the ini will disappear. You're now in installed mode again.

Hope my little tutorial helped saving 500-800 megabytes from your space, and good luck out there! (While writing this article I did an analyze, and CCleaner found 1.6 gigabytes deletable only from Steam caches. And yet I didn't included my Standalone CS:S HLDS directory)

Last edited by whisperity: 12-19-2010 at 01:09 AM.
whisperity is offline  
Reply With Quote
Old 05-17-2013, 12:28 PM   #2
avalanch07
 
 
 
Join Date: Aug 2009
Reputation: 70
Posts: 887
Thanks, very useful info there.
avalanch07 is offline   Reply With Quote
Old 05-17-2013, 10:52 PM   #3
playaR
 
 
 
Banned
Join Date: Jan 2010
Reputation: 245
Posts: 1,250
So what is being deleted? Random decals?
playaR is offline   Reply With Quote
Old 05-18-2013, 04:03 AM   #4
daicon
 
 
 
Join Date: Jun 2010
Reputation: 89
Posts: 266
it says this thread was made in 2010... But got necro'd yesterday with it's first comment... How could such a useful post not have any comments until years later? Am I missing something?
daicon is offline   Reply With Quote
Old 05-18-2013, 04:13 AM   #5
Spykirby
 
Join Date: Jan 2009
Reputation: 935
Posts: 3,858
indeed useful.
Spykirby is offline   Reply With Quote
Old 05-18-2013, 01:03 PM   #6
avalanch07
 
 
 
Join Date: Aug 2009
Reputation: 70
Posts: 887
Quote:
Originally Posted by playaR View Post
So what is being deleted? Random decals?
The steam cache from when you browse around. Unlike a regular browser setup, it'll keep data there for years adding up to over 5gb worth of old cached unneeded info if you let it.

Telling ccleaner to clean this & the other folders mentioned help to get rid of it like steam should be doing in the first place.
avalanch07 is offline   Reply With Quote
Old 05-18-2013, 04:33 PM   #7
playaR
 
 
 
Banned
Join Date: Jan 2010
Reputation: 245
Posts: 1,250
Yeah I just went back and looked at the folders. I guess you can do this if you actually use Steam to browse anything.
playaR is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Discussions > Help and Tips


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 12:53 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.