Hard reset

someone knows any way to reset the beaglebone from factory.

You could flash the eMMC with either a Flasher image or via a standard image but edit the uEnv.txt file:
https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flashing_eMMC

https://beagleboard.org/latest-images

Jon