Remove a variable
558102
def remove_value(self, name):
        """"""
        code = u"get_ipython().kernel.remove_value('%s')" % name
        if self._reading:
            self.kernel_client.input(u'!' + code)
        else:
            self.silent_execute(code)
402561
def delete_local_variable(self, onnx_name):
        '''
        
        '''
        if onnx_name not in self.onnx_variable_names or onnx_name not in self.variables:
            raise RuntimeError('The variable to be removed not found')
        self.onnx_variable_names.discard(onnx_name)
        raw_name = self.variables[onnx_name].raw_name
        self.variable_name_mapping[raw_name].remove(onnx_name)
        del self.variables[onnx_name]
392025
def remove_scoped_variable(self, scoped_variable_id, destroy=True):
        
        if scoped_variable_id not in self._scoped_variables:
            raise AttributeError("A scoped variable with id %s does not exist" % str(scoped_variable_id))

        # delete all data flows connected to scoped_variable
        if destroy:
            self.remove_data_flows_with_data_port_id(scoped_variable_id)

        # delete scoped variable
        self._scoped_variables[scoped_variable_id].parent = None
        return self._scoped_variables.pop(scoped_variable_id)
253783
def clear(self):
        
        for variable in self._project.variables.list(all=True):
            variable.delete()
1273436
def set_variable(self, name, value):
        
        if value is None:
            # Unset the variable.
            if name in self._var:
                del self._var[name]
        self._var[name] = value
183845
function clear_assign($tpl_var)
	{
		if (is_array($tpl_var))
		foreach ($tpl_var as $curr_var)
		unset($this->_tpl_vars[$curr_var]);
		else
		unset($this->_tpl_vars[$tpl_var]);
	}
854341
function removeOne(str, isPi) {
  if (str === '1') {
    return isPi ? 'π' : '';
  }
  if (isPi && str === '-1') {
    return '-π';
  }
  return isPi ? str + 'π' : str;
}
693085
def remove_highest(var)
      configs.each do |c|
        if c.has_var?(var)
          return c.remove_var(var)
        end
      end

      # return nil if we haven't returned a value yet
      nil
    end
402897
function _trim($value)
    {
        for ($i = count($value) - 1; $i >= 0; --$i) {
            if ($value[$i]) {
                break;
            }
            unset($value[$i]);
        }

        return $value;
    }
1242271
function(var_name)
    {
        for (var i=0; i<this._features.length; i++)
        {
             if (this._features[i] === var_name){
                 this._features.splice(i,1);
                 return true;
             }
        }
        return false;
    }
681575
@Nonnull
  public PreprocessorContext removeLocalVariable(@Nonnull final String name) {
    assertNotNull("Variable name is null", name);
    final String normalized = assertNotNull(PreprocessorUtils.normalizeVariableName(name));

    if (normalized.isEmpty()) {
      throw makeException("Empty variable name", null);
    }

    if (mapVariableNameToSpecialVarProcessor.containsKey(normalized) || globalVarTable.containsKey(normalized)) {
      throw makeException("Attempting to remove either a global variable or a special variable as a local one [" + normalized + ']', null);
    }

    if (isVerbose()) {
      logForVerbose("Removing local variable '" + normalized + "\'");
    }
    localVarTable.remove(normalized);
    return this;
  }
1142417
function remove (arr, item) {
  if (arr.length) {
    var index = arr.indexOf(item);
    if (index > -1) {
      return arr.splice(index, 1)
    }
  }
}
1228231
public function remove()
    {
        $f = json_decode(file_get_contents(FEnv::get("framework.root").
            "elements/config_files/core/apps.json"));
        foreach ($f as $one => $val) {
            if ($val->name == $this->name) {
                unset($f->$one);
                break;
            }
        }

        $f = json_encode($f, JSON_PRETTY_PRINT);
        file_put_contents(FEnv::get("framework.root")."elements/config_files/core/apps.json", $f);

        Server::delete(FEnv::get("framework.root")."apps/".$this->name, "directory");
        Server::delete(
            FEnv::get("framework.root")."public/components/apps/".strtolower($this->name),
            'directory'
        );
    }
1270100
def remove_value(v)
      index = @values.index(v)
      if index
        return !@values.delete_at(index).nil?
      else
        return false
      end
    end
428101
function unset(appName, variableNames, callback) {
    if (!util.isArray(variableNames)) {
      return callback(new Error('To unset a variable pass an array of names'));
    }

    var keyValues = {};
    variableNames.forEach(function onUnsetResponse(variableName) {
      keyValues[variableName] = null;
    });

    set(appName, keyValues, callback);
  }
411944
def _replace_variables(data, variables):
    """"""
    formatter = string.Formatter()
    return [formatter.vformat(item, [], variables) for item in data]
591578
public static function remove($var)
    {
        $path = ($var instanceof Model)
            ? self::getPath($var)
            : $var;

        Utils\Utils::arrayPathUnset(self::$models, $path);
    }