Removes unused directories