Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete all file inside folder

import os, re, os.path
mypath = "my_folder"
for root, dirs, files in os.walk(mypath):
    for file in files:
        os.remove(os.path.join(root, file))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #delete #file #folder
ADD COMMENT
Topic
Name
4+6 =