code: def remove(self, env_path):
          
          with filelock(self.lockpath):
              cache = self._read_cache()
              logger.debug("Removing virtualenv from cache: %s" % env_path)
              lines = [
                  line for line in cache
                  if json.loads(line).get('metadata', {}).get('env_path') != env_path
              ]
              self._write_cache(lines)
docs: Remove metadata for a given virtualenv from cache.