Cactus WHID / Change firmware

Hello community,

I just bought cactus whid from aliexpress.

It's a device build with esp8266 and atmega 32u4.

Since july 2017 it's preloaded with exploit agency firmware.

I would like to change the firmware for another,this is not the problem.

My trouble is i don't know how to erase completely the memory,i would like to get full blank memory for install new firmware.

If someone can help it'll be very kind.

PS: Sorry if i'm not in right section.

Regards.

My trouble is i don't know how to erase completely the memory,i would like to get full blank memory for install new firmware.

Why do think that that is necessary?

groundFungus:
Why do think that that is necessary?

Because when i try to upload new firmware it shows me an error.

Both atmega 32u4 and esp8266.

I tried with IDE and esp flasher but both don't work.

here what i get when i try to overwrite: