# 4. Delete local png files to avoid re-uploading them later
for png_file in png_files:
png_file.unlink()
```  
When you overwrite `push_to_hub`, you have access to the attributes of [`CommitScheduler`] and especially:
- [`HfApi`] client: `api`
- Folder parameters: `folder_path` and `path_in_repo`
- Repo parameters: `repo_id`, `repo_type`, `revision`
- The thread lock: `lock`  
<Tip>