I want the program to automatically delete files.
Function accept(os.remove(" ")) the variable in Loop(for).
import shutil import threading import glob import os
def test():
    threading.Timer(5.0, test).start () # Was checked every 3 
    for  root, dirs, files in os.walk("/mydir"):
         for file in files: 
         print(file)
         os.remove(" ") #delete the file
         print("remove the file")
test()
 
     
    