# Reset mangOH green to factory settings

**URL:** <https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725>\
**Category:** mangOH Green\
**Created:** [July 16, 2018, 9:37pm UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725 "2018-07-16T21:37:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![magiconair](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/magiconair/32/490_2.png) [@magiconair](https://mangoh.discourse.group/u/magiconair)\
**Post date:** [July 16, 2018, 9:37pm UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/1 "2018-07-16T21:37:56Z")

</div>

How do I fully reset a mangOH green to the official firmware image?

I have updated legato to 18.05.1 from 16.10.4 to test the procedure and would like to revert this.

I’ve tried `sudo swiflash -m WP750X -i WPx5xx_Release15_GENERIC_SPK.spk` but after the reboot `legato version` still shows `18.05.1`.

Downgrading with `update legatoz-16.10.4_wp85.cwe 192.168.2.2` does not work since the tool refuses this with

```auto
Systems installed:
  21 [good] <-- current
Legato frameowrk is running.

```

Any help is greatly appreciated.

Frank

---

<div class="post-metadata">

**Author:** ![leoniloris](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@leoniloris](https://mangoh.discourse.group/u/leoniloris)\
**Post date:** [July 17, 2018, 2:25am UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/2 "2018-07-17T02:25:54Z")

</div>

try to first

```auto
swiflash -m WP750X -r

```

It will erase the user partition.

---

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [July 17, 2018, 4:26am UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/3 "2018-07-17T04:26:10Z")

</div>

To erase legato follow instructions:

legato stop  
rm -rf /mnt/flash/legato/\*  
reboot

---

<div class="post-metadata">

**Author:** ![magiconair](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/magiconair/32/490_2.png) [@magiconair](https://mangoh.discourse.group/u/magiconair)\
**Post date:** [July 17, 2018, 4:48am UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/4 "2018-07-17T04:48:49Z")

</div>

that did not have an effect.

---

<div class="post-metadata">

**Author:** ![magiconair](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/magiconair/32/490_2.png) [@magiconair](https://mangoh.discourse.group/u/magiconair)\
**Post date:** [July 17, 2018, 4:50am UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/5 "2018-07-17T04:50:02Z")

</div>

Erasing legato as @Francis.duhaut described worked.

Thx.

---

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [July 17, 2018, 9:25am UTC](https://mangoh.discourse.group/t/reset-mangoh-green-to-factory-settings/1725/6 "2018-07-17T09:25:51Z")

</div>

Yes it’s the best way if you have flashed a legato “update” (stored in RW partition).  
If you have flashed a .cwe, the new legato will be stored into the read only partition.

The only way in this case is to reflash the original firmware or old legato .cwe.

good day.  
Francis.
