with open('deploy.py', 'r') as f: content = f.read() content = content.replace('api.delete_file("historical_cache.parquet", repo_id=repo_id, repo_type="space")', 'pass') with open('deploy.py', 'w') as f: f.write(content)