element.classList.remove(className1)

// You can remove multiple class values at once.
element.classList.remove(className1, className2)
element.classList.remove(className1, className2, /*...,*/ classNameN)
<style>
    .bold {
        font-weight: 600;
    }
    .bg-red {
        background-color: red;
    }
</style>
<p class="bold bg-red">Clicking the button removes the "bg-red" class value.</p>
<button type="button">Remove a Class Value from the Element</button>
const elem = document.querySelector("p");
const button = document.querySelector("button");

button.addEventListener("click", () => { // Button click event
    // Remove the "bg-red" class value
    elem.classList.remove("bg-red");
});
Rendered Output Click the "Remove a Class Value from the Element" button!
<style>
    .bold {
        font-weight: 600;
    }
    .bg-red {
        background-color: red;
    }
    .color-white {
        color: white;
    }
</style>
<p class="bold bg-red color-white">Clicking the button removes multiple class values.</p>
<button type="button">Remove a Class Value from the Element</button>
const elem = document.querySelector("p");
const button = document.querySelector("button");

button.addEventListener("click", () => { // Button click event
    // Remove multiple class values separated by commas (,)
    elem.classList.remove("bg-red", "color-white");
});
Rendered Output Click the "Remove a Class Value from the Element" button!
const classes = ["a", "b", "c"];
element.classList.remove(...classes);