Factory reset

Is there a simple way to do a hard reset prior to resale? I don’t want to have to bin it, but I don’t have skills for anything beyond the obvious