import shutil

shutil.rmtree('/folder_name')

发表回复