only clean out directory if not empty