Reset the settings to their defaults, this will delete the record model
969796
public function resetDefault()
    {
        if ($record = $this->getSettingsRecord()) {
            $record->delete();
            unset(self::$instances[$this->recordCode]);
            Cache::forget($this->getCacheKey());
        }
    }
185343
public function clear()
    {
        $this->id = null;
        $this->username = null;
        $this->password = null;
        $this->first_name = null;
        $this->last_name = null;
        $this->create_date = null;
        $this->update_date = null;
        $this->status = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
665131
def clear(self):
        
        if self._customFormat:
            self._customFormat.clear()
        else:
            super(XSettings, self).clear()
525725
private function reset()
    {
        $this->settings['columns'] = null;
        $this->settings['table'] = null;
        $this->settings['where'] = null;
        $this->settings['order'] = null;
        $this->settings['limit'] = null;
        $this->settings['statements'] = null;
        $this->settings['foreing'] = null;
        $this->settings['reference'] = null;
        $this->settings['on'] = null;
        $this->settings['actions'] = null;
        $this->settings['engine'] = null;
        $this->settings['charset'] = null;
    }
191567
def clear(self, *objs):
        
        if objs:
            keys = get_objs_columns(objs, self.realfieldb)
            self.do_(self.table.delete(self.get_default_condition() & (self.table.c[self.fieldb].in_(keys))))
        else:
            self.do_(self.table.delete(self.get_default_condition()))
        #cache [] to _STORED_attr_name
        setattr(self.instance, self.store_key, Lazy)
449547
def clear(self) -> None:
        
        # these internal records are used as a way to tell the difference between
        # changes that came before and after the clear
        self.record_changeset()
        self._clears_at.add(self.latest_id)
        self.record_changeset()
533541
public void resetTheModel()
    {
        this.setRowCount(START_ROWS);       // Theoretical EOF value for table scroller (Actual when known).
        m_iLastRecord = RECORD_UNKNOWN;                 // When EOF is known
        m_iLargestValidRecord = -1;
        this.setCurrentRow(-1);
        m_iCurrentLockedRowIndex = -1;
        this.fireTableChanged(new TableModelEvent(this)); // Entire table changed
    }
178449
public function reset(): void
    {
        $this->opening = new Record(
            'Opening',
            new Obj(0, $this->date, 'Date'),
            new Text(0, 'AUTOGIRO'),
            new Text(0, str_pad('', 44)),
            new Number(0, $this->bgcNr, 'PayeeBgcNumber'),
            $this->payeeBgNode,
            new Text(0, '  ')
        );
        $this->mandates = [];
        $this->payments = [];
        $this->amendments = [];
    }
782539
public function reset()
    {
        $this->tableNames = [];
        $this->databaseFields = [];
        $this->databaseIndexes = [];
        $this->defaultDatabaseIndexes = [];
        $this->compositeFields = [];
    }
508553
public void clearControlPressedRecord() {
		for (int i=0;i<controllers.size();i++) {
			Arrays.fill(controllerPressed[i], false);
		}
	}
1228194
public function resetRecords(array $params = []) {
		$defaults = [
			'page' => 1,
			'limit' => $this->_config['limit'],
			'fields' => [],
			'order' => [$this->_table->getAlias() . '.' . $this->_table->getPrimaryKey() => 'ASC'],
			'conditions' => $this->_config['scope'],
			'validate' => $this->_config['validate'],
		];
		if (!empty($this->_config['fields'])) {
			foreach ((array)$this->_config['fields'] as $field) {
				if (!$this->_table->hasField($field)) {
					throw new RuntimeException('Table does not have field ' . $field);
				}
			}
			$defaults['fields'] = array_merge([$this->_table->getAlias() . '.' . $this->_table->getPrimaryKey()], $this->_config['fields']);
		} else {
			$defaults['fields'] = [$this->_table->getAlias() . '.' . $this->_table->getPrimaryKey()];
			if ($this->_table->getDisplayField() !== $this->_table->getPrimaryKey()) {
				$defaults['fields'][] = $this->_table->getAlias() . '.' . $this->_table->getDisplayField();
			}
		}

		$updateFields = [];
		if (!$this->_config['updateTimestamp']) {
			$fields = ['modified', 'updated'];
			foreach ($fields as $field) {
				if ($this->_table->getSchema()->getColumn($field)) {
					$defaults['fields'][] = $field;
					$updateFields[] = $field;
					break;
				}
			}
		}

		$params += $defaults;

		$conditions = $params['conditions'];
		$count = $this->_table->find('count', compact('conditions'));
		$max = (int)ini_get('max_execution_time');
		if ($max) {
			set_time_limit(max($max, $count));
		}

		$modified = 0;
		while (($records = $this->_table->find('all', $params)->toArray())) {
			foreach ($records as $record) {
				$fields = (array)$params['fields'];
				if ($this->getConfig('updateFields')) {
					$fields = (array)$this->getConfig('updateFields');
					if (!$this->_config['updateTimestamp']) {
						$fields = array_merge($updateFields, $fields);
					}
				}
				if ($fields && !in_array($this->_table->getPrimaryKey(), $fields)) {
					$fields[] = $this->_table->getPrimaryKey();
				}

				if ($this->_config['callback']) {
					if (is_callable($this->_config['callback'])) {
						$parameters = [$record, &$fields];
						$record = call_user_func_array($this->_config['callback'], $parameters);
					} else {
						$record = $this->_table->{$this->_config['callback']}($record, $fields);
					}
					if (!$record) {
						continue;
					}
				}

				$validate = $params['validate'];
				$res = $this->_table->save($record, compact('validate', 'fields'));
				if (!$res) {
					throw new RuntimeException(print_r($record->getErrors(), true));
				}
				$modified++;
			}
			$params['page']++;
			if ($this->_config['timeout']) {
				sleep((int)$this->_config['timeout']);
			}
		}
		return $modified;
	}
639842
def reset(self):
        """"""
        self.info(self.tr("About to reset.."))

        models = self.data["models"]

        models["instances"].store_checkstate()
        models["plugins"].store_checkstate()

        # Reset current ids to secure no previous instances get mixed in.
        models["instances"].ids = []

        for m in models.values():
            m.reset()

        for b in self.data["buttons"].values():
            b.hide()

        comment_box = self.findChild(QtWidgets.QWidget, "CommentBox")
        comment_box.hide()

        util.defer(500, self.controller.reset)
259129
void resetDefaultsFlag() {

        hasDefaultValues = false;

        for (int i = 0; i < colDefaults.length; i++) {
            hasDefaultValues = hasDefaultValues || colDefaults[i] != null;
        }
    }
434359
def reset(self):
        '''
        
        '''
        self.model = pm.Model()
        self.mu = None
        self.par_groups = {}
452549
public function clear()
    {
        $this->id = null;
        $this->feature_av_id = null;
        $this->feature_feature_type_id = null;
        $this->locale = null;
        $this->value = null;
        $this->created_at = null;
        $this->updated_at = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
991359
protected function resetSettings()
    {
        $this->controlAccess('module_edit');
        $this->module->setSettings('frontend', array());
        $this->redirect('', $this->text('Settings have been reset to default values'), 'success');
    }
811775
public function reset()
    {
        $this->values[self::ID] = null;
        $this->values[self::BASEKEY] = null;
        $this->values[self::RATCHETKEY] = null;
        $this->values[self::IDENTITYKEY] = null;
        $this->values[self::BASEKEYSIGNATURE] = null;
    }