Standard library function to remove folder with files and subfolders?
Philip Semanchuk
philip at semanchuk.com
Sat Sep 18 17:36:49 EDT 2010
On Sep 18, 2010, at 5:24 PM, python at bdurham.com wrote:
> Is there a standard library function to remove a folder that may
> contain files and subfolders? Or must I write a function that
> walks my folder's children and deletes all files/subfolders
> first, and then call os.removedirs()?
In Python 2.x:
shutil.rmtree()
Might have moved in Python 3.x.
HTH
Philip
More information about the Python-list
mailing list