Remove directories from HDF5 dir