Kodi Community Forum

Full Version: remove some directories and files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, maybe a really stupid question - what is the correct syntax in python to remove some directories and files.

I have the following directory:

/storage/.xbmc/userdata/addon_data/plugin.program.super.favourites/Super Favourites/*.*

and I want to delete all the sub-directories and files in /storage/.xbmc/userdata/addon_data/plugin.program.super.favourites/Super Favourites/