mostly, depends on the switch platform...
you can do a 'erase start' and that will erase most all config info, except for local oper/manager uid/pw as they are stored in a separate part of NV ram (unless it is a provision-asic family switch with 'include-credentials' enabled and then the local uid/pw are in the config and will also be reset)...
neither 'erase start' nor using front panel "clear & reset" buttons to do a "factory reset" will erase SSH/SSL keys - those must be deleted manually...
hth...jeff