 <p>Thanks Adam Smith,</p> <p>It was almost what I was looking for here is the edited code.</p> <pre><code>import glob import xbmc import os import shutil TARGETFOLDER = xbmc.translatePath('special://home/addons/') addonvideo = glob.glob(xbmc.translatePath('special://home/addons/plugin.video.*')) for dirname in addonvideo: shutil.rmtree(dirname) </code></pre> <p>Im creating some maintenance scripts for Kodi, I'm new to python but slowly getting my head around it, with the help of you guys. Thanks a million!</p> <p>I am going to elaborate on this code and would like to post back if I need some more guidance if poss. Cheers :)</p>