element.removeAttribute(attributeName)
<style>
    .bg {
        background-color: yellowgreen;
    }
</style>
<p class="bg">背景色を削除してみてください。</p>
<button type="button">背景色を削除</button>
const elem = document.querySelector("p");
const button = document.querySelector("button");

button.addEventListener("click", () => { // ボタンのクリックイベント
    /* ボタンをクリックすると、
       p要素のclass属性が削除されます。 */
    elem.removeAttribute("class");
});
実際の適用例 「背景色を削除」ボタンをクリックしてみてください!
<input type="text" value="Hello World!" disabled>
<button type="button">有効にする</button>
const input = document.querySelector("input");
const button = document.querySelector("button");

button.addEventListener("click", () => {
    input.removeAttribute("disabled");
});
実際の適用例 まず、実際に無効になっているテキスト入力ボックスを確認してから、「有効にする」ボタンをクリックして、テキスト入力ボックスが再び有効になるか確認してみてください。