46
46
def clean_tree(directory, unknown=False, ignored=False, detritus=False,
48
48
"""Remove files in the specified classes from the tree"""
49
49
tree = WorkingTree.open_containing(directory)[0]
52
deletables = iter_deletables(tree, unknown=unknown, ignored=ignored,
54
64
delete_items(deletables, dry_run=dry_run)