def destroy(directory):
    "Render the directory with its contents unrecoverable."
    for root, dirs, files in walk(directory, False):
        for name in files:
            try_delete(try_overwrite(try_rename(root, name)))
        try_delete(try_rename(root))
Render the directory with its contents unrecoverable.
recipes/Python/577670_Destroying_Directories/recipe-577670.py