parameters: (cls: core.Wavefunction, key: str)
docstring: Removes scalar or array QCVariable *key* from *cls* if present.
docstring_summary: Removes scalar or array QCVariable *key* from *cls* if present.
docstring_tokens: Removes scalar or array QCVariable * key * from * cls * if present .
function: def _core_wavefunction_del_variable(cls: core.Wavefunction, key: str) -> None:
      """Removes scalar or array QCVariable *key* from *cls* if present."""
  
      if cls.has_scalar_variable(key):
          cls.del_scalar_variable(key)
      elif cls.has_array_variable(key):
          cls.del_array_variable(key)
function_tokens: def _core_wavefunction_del_variable ( cls : core . Wavefunction , key : str ) -> None : if cls . has_scalar_variable ( key ) : cls . del_scalar_variable ( key ) elif cls . has_array_variable ( key ) : cls . del_array_variable ( key )