clean base directory