Which UX is correct for the empty columns

we are building software that has master detail design with tree view on left for selection and data grid on the rights for details (like in windows file explorer). File explorer

now we are discussing the case when for selected node all rows inside details grid have empty values for the some column (like size on screenshot). Is it correct to hide such empty columns or not?