remove optional package directory.