clean the main driver