pruning unused directories