cleaning the grid directory