<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clear_cache_root():
 """Clears everything in the song cache"""

    logger.debug("Clearing root cache")
    if os.path.isdir(_root_songcache_dir):
        for filename in os.listdir(_root_songcache_dir):
            file_path = os.path.join(_root_songcache_dir, filename)
            try:
                if os.path.isfile(file_path):
                    os.unlink(file_path)
                elif os.path.isdir(file_path):
                    shutil.rmtree(file_path)
            except PermissionError:
                pass
            except Exception as e:
                logger.exception(e)
    logger.debug("Root cache cleared")