> For the complete documentation index, see [llms.txt](https://manual.rotrics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.rotrics.com/gcode/marlin-original-commands/marlin-m502-factory-reset.md).

# \[Marlin] M502 - Factory Reset

{% hint style="success" %}
**📅Update: 2020/09/18**
{% endhint %}

## Description

Reset all configurable settings to their factory defaults.

To also reset settings in EEPROM, follow with [`M500`](https://app.gitbook.com/docs/gcode/M500.html).

## Notes:

* Requires `EEPROM_SETTINGS`.
* Since Marlin 1.1.0 only changed bytes are written to prolong EEPROM life.

  **Usage**

  `M500`

## Examples

Reset settings and save them to EEPROM

```
M502 ; reset!
M500 ; saved!!
```
