def remove_cached_model_files():
    '''
    This function removes all the cached models from the cache paths to save disk space
    '''
    cache_paths = ModelCache.get_all_cache_paths()
    for cache_path in cache_paths:
        if os.path.exists(cache_path):
            for item in os.listdir(cache_path):
                item_path = os.path.join(cache_path, item)
                # Check if the item is a file or directory
                if os.path.isfile(item_path):
                    os.remove(item_path)
                elif os.path.isdir(item_path):
                    shutil.rmtree(item_path)

    This function removes all the cached models from the cache paths to save disk space
    
tests/integ_tests/s2_inference/test_large_model_encoding.py