Python public recipes
Deletes the content of a directory recursively.
import shutil
# if ignore_errors is False, an exception is raised if some parts of the directory cannot be removed
shutil.rmtree(directory, ignore_errors=False)
Deletes the content of a directory recursively.
import shutil
# if ignore_errors is False, an exception is raised if some parts of the directory cannot be removed
shutil.rmtree(directory, ignore_errors=False)