Answers for "python aut delete images"

3

python delete saved image

import os
os.remove(file) for file in os.listdir('path/to/directory') if file.endswith('.png')
Posted by: Guest on June-15-2020
3

how to delete file in python

import os
os.remove("ChangedFile.csv")
print("File Removed!")
Posted by: Guest on September-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language