Prune directory.