Vanille -JavaScript -Datenattribut entfernen

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