remove metadata directory