Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Deleting a file using python

import os

# os.remove("text.txt")
# print("File deleted")


for file in os.listdir("fileDirectory"):
    os.remove("fileDirectory"+file)
    print(file, "deleted")
Source by raw.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #Deleting #file #python
ADD COMMENT
Topic
Name
2+7 =