vanilla javascript menghapus atribut data

elem.removeAttribute('data-foo');
otheroom