"For-dummies" guide to a bricked Electron/Photon

Hello everyone,

I am interested in finding out, to document it, the sequence of steps to completely rewrite the flash memory in an Electron or a Photon. I haven’t bricked any yet, but to make a snippet handy, or attempt to erase and rewrite for curiosity, I believe this would be helpful. I have been trying to consolidate a “for-dummies” guide using information from the Particle Docs and the Community, but I haven’t hit the spot on the following.

Could anyone please summarize the behaviour of the RGB LED when the flash is erased, or how to identify when a device is bricked, how to intentionally erase it, and the process of recovery keeping the same credentials, touching base on the software and hardware tools required?