clean the main dir