Answers for "remove folder with in files python"

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 "remove folder with in files python"

Python Answers by Framework

Browse Popular Code Answers by Language