TTOG how to factory reset?

Does anyone know procedure on how to factory reset when you lost your password (ssh and gui) ?
I can’t find any information on that point on the installation guide.

Thanks