def delete_cache(self): try: if xbmcvfs.exists(PLAYLISTS_FILE): xbmcvfs.delete(PLAYLISTS_FILE) log('Deleted Playlists file.') except: return False return True