Answers for "python code to delete folder"

9

python dlete folder

import shutil

shutil.rmtree('/folder_name')
Posted by: Guest on June-12-2020
0

python file handling delete folder

import os
os.rmdir("myfolder")
#will delete an entire folder if exist.
Posted by: Guest on September-13-2021

Code answers related to "python code to delete folder"

Python Answers by Framework

Browse Popular Code Answers by Language