Default full reset

Is theelre any way I can flash stock and get fully back to stock like out of the box. I've tried Odin and factory reset. Stuff still ends up staying on the phone.