clean the main directory