Here is my version of the script just removes all the crap not needed.
CODE
###################################################################
#
# my_wipecache v0.0.0
# by AMaNO
# A simple cache file and drive clearing system
#
###################################################################
import os, xbmcgui, xbmc, time
from os.path import join
#time2wait=20
dialog = xbmcgui.DialogProgress()
for root, dirs, files in os.walk("E:\\Cache\\", topdown=False):
for name in files:
os.remove(join(root, name))
for name in dirs:
os.rmdir(join(root, name))
for root, dirs, files in os.walk("X:\\", topdown=False):
for name in files:
os.remove(join(root, name))
for name in dirs:
os.rmdir(join(root, name))
for root, dirs, files in os.walk("Y:\\", topdown=False):
for name in files:
os.remove(join(root, name))
for name in dirs:
os.rmdir(join(root, name))
for root, dirs, files in os.walk("Z:\\", topdown=False):
for name in files:
os.remove(join(root, name))
for name in dirs:
os.rmdir(join(root, name))
# All Cache areas cleaned
dialog = xbmcgui.Dialog()
dialog.ok("Wipe Cache","All Cache areas wiped.")