removing metadata directories