Cleaning out a mac (selling)

Do a fresh install… put cd in and hold c at boot it should start booting from the cdrom