Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to delete a file or folder in Python?

os.remove() removes a file.

os.rmdir() removes an empty directory.

shutil.rmtree() deletes a directory and all its contents.
Source by thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #How #delete #file #folder
ADD COMMENT
Topic
Name
1+6 =