Can i do a factory reset by function ( or switch? Not those that on the core) [Solved!]

I think it’s possible but I need to find the code for it.

If you dig in the core-firmware repo, or maybe/more likely the bootloader, you can see the code for it.