def METHOD_NAME(cache_folder, force_all=False):
    if cache_folder is not None:
        if os.path.isdir(cache_folder):
            for the_file in os.listdir(cache_folder):
                file_path = os.path.join(cache_folder, the_file)
                try:
                    if os.path.isfile(file_path):
                        os.unlink(file_path)
                    elif os.path.isdir(file_path):
                        if not file_path.endswith("DND") or force_all:
                            shutil.rmtree(file_path)
                except Exception as e:
                    print(e)