prune work directory