Last active
September 12, 2021 16:23
-
-
Save karthick965938/d75b5c33ce7aca8012e88f7da4691a73 to your computer and use it in GitHub Desktop.
Remove PNG images into the directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import pathlib | |
for file in glob.glob('frames/*.png'): | |
path = pathlib.Path(file) | |
path.unlink() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment